Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to develop a project where user can sign up using a form then an activation code will be sent to the user email id.

I need the code to send activation code to user email id.

Please help me.
Thanks in advance.
Posted
Updated 6-May-11 22:20pm
v2
Comments
Nischal Bhatt 7-May-11 4:06am    
Hey! Rahul,
You want to send it using SMTP or POP3, if you want to send it using SMTP you need to start your SMTP Relay under IIS or using POP3?
Dalek Dave 7-May-11 4:20am    
Edited for Gtammar and Readability.

The code to send the email is here: Sending an Email in C# with or without attachments: generic routine.[^]

The rest is up to you: we don't know anything about your activation code, database format, website layout, etc., etc.,...
 
Share this answer
 
Comments
Dalek Dave 7-May-11 4:21am    
Easy enough to do.
there are several articles for this.you can google it.you can use
sytem.net.mail or system.web.mail namespaces...to do this...
 
Share this answer
 
There are few ways that you can send email using asp.net using C#.Net
Here is the good article Check out[^]
 
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