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

What is the purpose of cache? How is it used? : Dot net architecture

0 Answers  


What is the use of delegates

2 Answers  


3. Should validation (did the user enter a real date) occur server-side or client-side? Why?

4 Answers  


Explain pipelining? : .NET Architecture

0 Answers  


What does the term "green architecture" mean? : Dot net architecture

0 Answers  


which would be the best to use inproc,outproc or sql server

2 Answers   Ness Technologies,


What exactly is being serialized when you perform serialization? scope in C# ?

1 Answers  


Define cache coherency and how is it eliminated? : Dot net architecture

0 Answers  


How many types of assemblies are there in the visual studio.net?

1 Answers   Six Sigma,


12. Types of polymorphisem[Run and Design Exp.]

0 Answers   PCS,


What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework

4 Answers   T3 Softwares,


what is an assembly ?

2 Answers   IBM,


Categories