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

Why should hire you in company

1 Answers   Concentrix,


Explain write back and write through caches? : .NET Architecture

0 Answers  


can u give me real example of how web.config overrides the machine.config file?

0 Answers  


What re interop services?

0 Answers  


how to add list of items in a web application and win application?

0 Answers   Six Sigma,


Can you explain scriptmanager control?

0 Answers  


how would you manage data if u were not to use sessions or cookies ?

2 Answers   Ness Technologies,


How to prevent my .NET DLL to be decompiled?

0 Answers   CDC,


Can I customise the trace output?

0 Answers  


Differnce between managed code and unmanaged code ?

0 Answers  


Explain about metadata?

0 Answers  


The maximum report processing jobs limit configured by your system administrator has been reached.How I can Solve this problem when i using crystal report to load from my application.

2 Answers  


Categories