Click here to Skip to main content
15,905,785 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
hi there, I need to send no-reply email to the users in particular time. I can't utilize wcf services , it's too complex to understand for me as I am a beginner. I wonder it can't be done in MVC itself ? please shade some light on it.
Posted

1 solution

1.The sending of email in C# do not depend of MVC or WCF technologies, you should use SmtpClient and MailMessage classes for sending emails.

You can find details about sending emails in C#, including source code example at the nextMSDN link.[^]

2.The creation of a non replay email is not C#'s task, is your mailbox configuration; you can create a new email account like noreply@YourDomain.com then set your mailbox to ignore incoming messages for this email account.
 
Share this answer
 
Comments
JBobby 5-Jul-14 22:59pm    
thanks, this gives me some idea about sending email through c#.. and now I can send emails through c# SMTP Classes. Now my next step is creating a scheduler for this so I can send emails on a particular time frame.
Raul Iloc 6-Jul-14 2:24am    
Welcome!
From my point of view, the best way for creating a scheduler is by using threads and by hosting it into a Windows Service application (that will be installed on your server).

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