Click here to Skip to main content
15,913,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello ...
I have one registration form which accepts all the users information . After clicking on submit button it should send Thank you Mail to user on mail id given by user on registration form.

how to send mail to user using C#. I'm doing it first time ,I don't know how to do this......
Thanks
Posted
Updated 26-May-10 23:23pm
v3
Comments
Johnny J. 27-May-10 3:49am    
Reason for my vote of 1
Try googling first - this is nothing ununsual and there are literally hundreds of samples out there

Have you tried Google?

http://www.google.co.in/search?q=Sending+Mail+C%23[^]

There are lot of samples there.
 
Share this answer
 
If you are using the ASP.Net Membership model to provide new user registration pages, sending a mail to the user is built into the CreateUserWizard control.

Simply set up a mail definition in the wizard and add a couple of config entries for your SMTP server - done.

Have a google [^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900