How is the confirmation email sent on a customer registration?

See also: