Click here to Skip to main content
16,011,608 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am developing a website in which i want to send emails to customers automatically, but i do not know the code for that in c#, so please help me for that...
Thanking You.
Bhupendra
Posted
Updated 10-Oct-12 6:54am
v2

For sending email, have a look at this Microsoft Video tutorial:
Use ASP.NET to send Email from Website[^]
Tutorials on sending Email in ASP.NET[^]

Have a look at this tip too: Sending an Email in C# with or without attachments: generic routine.[^]
 
Share this answer
 
Hi,

Use system.net or system.webmail for sending automated mails, without using web services.

Thanks
Tapan kumar
 
Share this answer
 
If you want to send mail from ASP.Net, you can use SmtpClient object.

In case you are looking for a automatic scheduler kind of program, there are three ways

1. Write a console application which reads data (subject,content,email id) from db (or any storage) and send mail (again using SmtpClient). Now schedule this application using a windows scheduler.

2.If you want on database entry based system, write a trigger and from there call SP which can send out a mail.

3.Write a windoes service.

Hope that gives direction. If it helps mark it as asnwer/upvote.
Thanks
Milind
 
Share this answer
 
Comments
MT_ 11-Oct-12 0:55am    
Whoever has downvoted, May I know the reason for doing so ?

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