How to send e-mail from an ASP.NET application?
Answers were Sorted based on User's Feedback
Answer / mr.k.senthilkumar
MailMessage message = new MailMessage ();
message.From = <email>;
message.To = <email>;
message.Subject = "Scheduled Power Outage";
message.Body = "Our servers will be down tonight.";
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send (message);
MailMessage and SmtpMail are classes defined in the .NET
Framework Class Library's System.Web.Mail namespace.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / pardeep
System.Web.Mail.SMTP Mail Class used for send e-mail in ASP.NET
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / rakesh
OR ANOTHER EASY METHOD IS TO WRITE THE pOST METHOD IN THE
html page or design page .. may b this could be one more
soln.????
Is This Answer Correct ? | 15 Yes | 16 No |
Answer / mani
Mailmessage msg=new Mailmessage();
msg.To="nsro.net@gmail.com";
msg.From="nsrinivas.net@gmail.com";
msg.Sub="Hi Everybody";
msg.Body="This code is correct";
Smtpmail.Smtpserver="localhost";
Smtpmail.Send(msg);
Here Mailmessage and Smtpmail are classes.
Namespace System.web.mail
Is This Answer Correct ? | 1 Yes | 3 No |
Answer / srilatha
sending e-mail to the client (i.e;) sending request to the
client and server receives the e-mail. server sends the
response to the client
Is This Answer Correct ? | 4 Yes | 9 No |
how to track links visited in google using iframes
how to create a search bar which access data from various websites and retrieves the data
Data Reader Vs DataSet
How we implement the paypal in my website and how we make a payment through Credit Card.
How to integrate the regional language in asp.net and c# like Telugu, Hindi etc,. send a sample program
3 Answers Concept, NIIT, Wipro,
i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this
How to add checkbox to datagrid?
Code for Document Validation in XML.NET?
How to send e-mail from an ASP.NET application?
16 Answers DataPoint, Infosys, Persistent, Radar, TCS, Wipro,
How to get the row index on checking a Checkbox in a ListView
Code for Presenting Parent/Child Data in a Data Grid Row?
How we use ajax in asp.net through javaScript. Please givee me an example.