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 to gmail/yahoo or any other ID from your
mail server.I need the code.



How to send e-mail to gmail/yahoo or any other ID from your mail server.I need the code...

Answer / sunny

using System.Net.Mail;

public partial class _Default : System.Web.UI.Page
{
protected void btnsendmail_Click(object sender,
EventArgs e)
{
SmtpClient obj = new SmtpClient();
obj.Send(txt_from.Text, txt_to.Text,
txt_subject.Text, txt_body.Text);
}
}

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Dot Net AllOther Interview Questions

Explain a .net mobile example with details? : Microsoft dot net mobile

0 Answers  


what is the method while we are using adapter and dataset ?

0 Answers  


Can I create my own metadata attributes?

0 Answers  


define cache memory? : Dot net architecture

0 Answers  


Why only boxed types can be unboxed?

0 Answers  


What are library functions?

0 Answers   DELL,


Which is the best institute in chennai to learn DotNet? Please help.

48 Answers   HCL, Infosys, NIIT,


How does .net remoting work?

0 Answers  


.Net Frame work arch?

0 Answers  


Explain cache memory? : .NET Architecture

0 Answers  


Explain about developer benefit from memory management?

0 Answers  


What is biginteger and when would you use that?

0 Answers  


Categories