Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to send e-mail from an ASP.NET application?

Answers were Sorted based on User's Feedback



How to send e-mail from an ASP.NET application?..

Answer / vinod

using SmtpClientObject.send(MailMessageObject);

Is This Answer Correct ?    2 Yes 1 No

How to send e-mail from an ASP.NET application?..

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

How to send e-mail from an ASP.NET application?..

Answer / pardeep

System.Web.Mail.SMTP Mail Class used for send e-mail in ASP.NET

Is This Answer Correct ?    2 Yes 2 No

How to send e-mail from an ASP.NET application?..

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

How to send e-mail from an ASP.NET application?..

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

How to send e-mail from an ASP.NET application?..

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

Post New Answer

More ASP.NET Code Interview Questions

how to upload a photo? i need to use it in a matrimonial applicaton...

1 Answers  


Coding for Synchronizing Cache Access in ASP.NET?

0 Answers  


Code for a Simple Way to Write XML in .NET (XmlTextWriter)

1 Answers  


Data Reader Vs DataSet

5 Answers   TCS,


Code for Creating a Form Using PlaceHolder Controls?

0 Answers   Arena, JSA,


How we implement the paypal in my website and how we make a payment through Credit Card.

2 Answers  


how to upload an excel in c# ASP.Net?

3 Answers  


Code for Communicating over Sockets?

0 Answers  


ArrayList declaration in .net

0 Answers  


Code for Document Validation in XML.NET?

0 Answers   TCS,


How to get Dynamically Linked Comboboxes Set?

0 Answers   HCL,


What is the code of Password Recovery or Forget your password? Plz tell in c # language.

0 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)