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 mail in asp.net

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Out of ASP or ASP.NET which one is stateless?

1221


How can we prepairing Interview

2329


Describe the differences between the lifecycles of Windows services and Standard EXE?

1190


Explain asp.net web forms.

1069


Explain how is a property designated as read-only?

992


What parameters can you pass in the url of the api? Can get and post use the same url?

984


What is viewstate? In which event of the page life cycle, is the viewstate available?

1015


Explain Authentication mechanism in dotnet

1032


What is enableviewstate?

954


Explain the advantages of passport authentication.

914


What do you mean by caching in asp.net?

1013


Is redux flux?

946


How to you can limit Access to Web API to Specific HTTP Verb?

1179


Define a multilingual website?

963


Who is using asp.net?

935