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
What is session in http request?
Explain about solution explorer window?
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
What is session state server?
What are the advantages and limitations of query string?
What is diff. Between abstract class and an interface?
How you will improve web application performance?
Can asp.net work on an nt server?
We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?
What is the difference between page-level caching and fragment caching?
What are session state modes? List some of the important session state modes of asp.net.
What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?
What is http protocol and how it works?
What is validation in asp.net?
What are sessions in asp net?