Answer Posted / deep
MainMessage message = new MailMessage();
message.From = <email>;
message.To = <email>;
message.Subject= "Subject of the Message";
message.Body = "Body Text";
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(message);
MailMessage & SmtpMail are classes defined in ASP.Net FCL (Framework Class Library). In addition to the above, you must use IIS configuration applet to enable localhost to relay messages through the SMTP service.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How to use ipostback?
What is an asp.net validator? And, mention its types.
What is http response header?
What is Partial PostBack in ASP.NET?
How do I use response redirect?
how to elimainte the similar data from the different tables
What is difference between or and orelse?
What are the differnt types of handler in ASP.NET?
What r the asp.net list controls and diff. Between them?
What is __ requestverificationtoken?
Is asp.net free?
What are the Types of objects in ASP
What is work flow gen? how can it will work with .Net?
From which base class all web forms are inherited?
What is the use of session in web application?