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 |
Types of object in asp ?
Define Query Interface,Adref,Release?
In asp.net, how can you validate drop down box?
What are session state modes in asp.net?
Which protocol is used to call a web service?
Whats MSIL, and why should my developers need an appreciation of it if at all?
What is Fragment Caching in ASP.NET?
2 Answers MCN Solutions, pspl, Wipro,
What is a postback url?
How many webforms are possible on a single webpage?
What is special types forms
What is page fragment caching?
hi all, can we sort the data set without using the gridview sort method
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)