Sounds as if you've created a custom webpart. I'd suggest looking in the OOTB webpart that handles registration and find out what they do to send that email out to the newly registered user. You'll find more info in the /CMSWebparts/Membership/Registration/RegistrationForm.ascx.cs
file starting about line 721.