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
Out of ASP or ASP.NET which one is stateless?
How can we prepairing Interview
Describe the differences between the lifecycles of Windows services and Standard EXE?
Explain asp.net web forms.
Explain how is a property designated as read-only?
What parameters can you pass in the url of the api? Can get and post use the same url?
What is viewstate? In which event of the page life cycle, is the viewstate available?
Explain Authentication mechanism in dotnet
What is enableviewstate?
Explain the advantages of passport authentication.
What do you mean by caching in asp.net?
Is redux flux?
How to you can limit Access to Web API to Specific HTTP Verb?
Define a multilingual website?
Who is using asp.net?