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
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
What is the difference between application state and session state in asp net?
What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?
I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)
Can I combine classic asp and asp.net pages?
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
What is the difference between session.abandon() vs clear()?
Define authentication and authorization.
Explain Optimization technique description?
Why do we need asp.net?
What is the basic difference between asp and asp.net?
What is session state server?
How do cookies work? Give an example of their abuse.
Apart from IDE what are the enhancements in asp.net 2.0?