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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what does the term "green architecture" mean? : .NET Architecture

962


What is the difference between an event and a delegate?

990


What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile

934


Why am I getting an invalidoperationexception when I serialize an arraylist?

893


Explain about metadata?

931


What is the .net class that allows the retrieval of a data element using a unique key?

1017


Explain hard disk and what is its purpose? : Dot net architecture

952


Explain element .net mobile with example? : Microsoft dot net mobile

984


Use of Enable view state ? if turn off what happen ?

4485


data types used in validation control

2210


How can I create a application?

934


What does the term "green architecture" mean? : .NET Architecture

969


Explain the race around condition? : .NET Architecture

1014


Define the mesi? : Dot net architecture

938


Explain pipelining? : .NET Architecture

962