how to send mail in asp.net

Answers were Sorted based on User's Feedback



how to send mail in asp.net..

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

how to send mail in asp.net..

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

Post New Answer

More ASP.NET Interview Questions

How Response.flush works in server.Execute

1 Answers  


What is binding in web service ?

1 Answers   TCS,


Can you set which type of comparison you want to perform by the comparevalidator control?

0 Answers  


What does the .webpart file do?

0 Answers  


How To Send Value one page to Another Page On MasterMenu Click ? please Tell Me!

3 Answers   Accenture,






ADO.Net - how to get data from database and bind to the controls -- write this small code

3 Answers   Syntel,


Clearly Explain the ispostback

6 Answers   TCS,


Types of exceptions in dot net???

1 Answers   TCS,


How do you implement postback with a text box?

0 Answers  


How do you secure your configuration files to be accessed remotely by unauthorized users?

0 Answers  


What is difference between datalist and gridview?

0 Answers  


What is voluum?

0 Answers  


Categories