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 |
How Response.flush works in server.Execute
What is binding in web service ?
Can you set which type of comparison you want to perform by the comparevalidator control?
What does the .webpart file do?
How To Send Value one page to Another Page On MasterMenu Click ? please Tell Me!
ADO.Net - how to get data from database and bind to the controls -- write this small code
Clearly Explain the ispostback
Types of exceptions in dot net???
How do you implement postback with a text box?
How do you secure your configuration files to be accessed remotely by unauthorized users?
What is difference between datalist and gridview?
What is voluum?