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 the difference between ldap and active directory?
How can you implement encapsulation in asp.net?
hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.
If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?
Can you dynamically assign a Master Page?
How would ASP and ASP.NET applications run at the same time on the same server?
How would you get asp.net running in apache web servers? Explain it's limitations.
Which object wraps the state or data of a user?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
Explain automatic memory management in .net.
What is the difference between CLICK and MOUSE DOWN Event ?
Why do we use datasource in asp.net?
Write a code snippet to implement the indentation in json in web api.
What is state management react?
Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?