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 AutoPostback?
How does session id work?
Why do we need master page in asp.net?
Can the action attribute of a server-side tag be set to a value and if not how can you possibly pass data from a form page to a subsequent page?
What is the difference between page directive include and action tag include?
What is Web API Routing?
What is difference between abstract class and an interface?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
How you can access the values from the Repeater control in ASP.NET?
What are validator? Name the validation controls in asp.net?
What is asp.net response object?
How can you apply a theme to your asp.net application?
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)