This 12 Volts transformerless power supply take advantage of the fact that a Zener diode is also a normal diode that conducts current in the forward direction. During one half wave, the current flows via D1 through the load and back via D4, while during the other half wave it flows via D3 and D2. Bear in mind that with this circuit (and with the bridge rectifier version), the zero voltage reference of the DC voltage is not directly connected to the neutral line of the 230-V circuit.
The amount of current that can be delivered depends on the capacitance of C1. With the given value of 220nF, the current is approximately 15mA. A final warning: this sort of circuit is directly connected to mains voltage, which can be lethal. You must never come in contact with this circuit! It is essential to house this circuit safely in a suitable enclosure.