Mailing on creating an user

Hello,

I want to send a mail to a client after creating an account for him.

How do I add this mailing service inside invoice?? I am a developer

Thank you in advance.