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 |
i need code for insert,delete,update adn display records using stored procedure in C#
What are the intrinsic objects present in ASP.NET
Can we use the java script code in .Net Code behind?
What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC
What is http pipeline in asp.net?
How we can bind textbox,listbox and datagrid to sql server database in asp.net using visualstudio.net language (vb.net)?
How many types of sessions are there?
What is Web Gardening? How would using it affect a design ?
What is event in asp.net?
How many Directives r in ASP.NET?
how to retrieve data using web services in asp.net pls give me the code and explain me briefly
How to disable disable browser's Back button in asp.net (JavaScript)?