Make a service that sends an email.
I need code for a service that generates an email on the email address that a user provides in the form. Containing the user data that the user provides in the same form where he has mentioned this email address. This data must also be saved in the database.