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 state management in asp.net with example?
What is the use of service provider?
Types of caching ?
Exception handling
What is custom tag in web.config ?
2 Answers Accenture, BirlaSoft,
Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?
What is the difference between session and viewstate?
What is HTTPContext and HTTPModule. What is the use of them?
What is the difference between c# and .net?
Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
What is the default Orientation property in a Menu control?
0 Answers Sans Pareil IT Services,
What is difference cookie and session?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)