how to send mail in asp.net
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / varma
by using we can send the mail using asp.net we can also
upload sir said in class i can't remember now
Is This Answer Correct ? | 0 Yes | 0 No |
What is mta?
Is viewstate enabled by default?
Is asp.net and .net the same?
Can we have multiple web config files for an asp.net application?
How does the iis work?
Whats MSIL, and why should my developers need an appreciation of it if at all?
What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
Is it right that ASP.NET Web API has replaced WCF?
What is the difference between the get method () and post method ()?
What are the properties of the eventargs argument when capturing keyboard events?
Is session stored in browser?
What is the difference between session and viewstate?