Click here to Skip to main content
16,011,566 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPlease help Pin
varshavmane20-Apr-06 2:07
varshavmane20-Apr-06 2:07 
AnswerRe: Please help Pin
Mike Ellison20-Apr-06 2:54
Mike Ellison20-Apr-06 2:54 
QuestionASP.NET web controls - Data grid - Issue Pin
Arunag20-Apr-06 2:06
Arunag20-Apr-06 2:06 
AnswerRe: ASP.NET web controls - Data grid - Issue Pin
sathish s20-Apr-06 3:14
sathish s20-Apr-06 3:14 
Questionreading directory contents....? (urgent please) Pin
shah zad20-Apr-06 1:21
shah zad20-Apr-06 1:21 
AnswerRe: reading directory contents....? (urgent please) Pin
Naveed Kamboh20-Apr-06 1:37
Naveed Kamboh20-Apr-06 1:37 
QuestionPlease Help Pin
mahmoud mohammed20-Apr-06 1:12
mahmoud mohammed20-Apr-06 1:12 
AnswerRe: Please Help Pin
chakkara200320-Apr-06 1:24
chakkara200320-Apr-06 1:24 
.NET 2.0 includes much richer Email API support within the System.Net.Mail code namespace. I've seen a few questions from folks wondering about how to get started with it. Here is a simple snippet of how to send an email message from “sender@foo.bar.com” to multiple email recipients (note that the To a CC properties are collections and so can handle multiple address targets):

MailMessage message = new MailMessage();

message.From = new MailAddress("sender@foo.bar.com");
message.To.Add(new MailAddress("recipient1@foo.bar.com"));
message.To.Add(new MailAddress("recipient2@foo.bar.com"));
message.To.Add(new MailAddress("recipient3@foo.bar.com"));
message.CC.Add(new MailAddress("carboncopy@foo.bar.com"));
message.Subject = "This is my subject";
message.Body = "This is the content";
SmtpClient client = new SmtpClient();
client.Send(message);

System.Net.Mail reads SMTP configuration data out of the standard .NET configuration system (so for ASP.NET applications you’d configure this in your application’s web.config file). Here is an example of how to configure it:

from tis inside html tag

system.net

mailSettings

smtp from="test@foo.com"

network host="smtpserver1" port="25" userName="username" password="secret" defaultCredentials="true"

smtp

mailSettings

system.net
upto tis inside html tag

or
http://www.codeproject.com/useritems/EmailApplication.asp

hope tis will help u, to configure smtp http://www.aspit.net/tutorials/specific/configuring_smtp_server_under_iis_step_by_step.asp

coolsweety

-- modified at 7:27 Thursday 20th April, 2006
AnswerRe: Please Help Pin
benqazou20-Apr-06 1:28
benqazou20-Apr-06 1:28 
AnswerRe: Please Help Pin
J4amieC20-Apr-06 1:55
J4amieC20-Apr-06 1:55 
Questionrediobutton Pin
ptvce20-Apr-06 0:58
ptvce20-Apr-06 0:58 
AnswerRe: rediobutton Pin
chakkara200320-Apr-06 1:08
chakkara200320-Apr-06 1:08 
AnswerRe: rediobutton Pin
benqazou20-Apr-06 1:21
benqazou20-Apr-06 1:21 
GeneralRe: rediobutton Pin
ptvce20-Apr-06 3:22
ptvce20-Apr-06 3:22 
Questionhi all Pin
chakkara200320-Apr-06 0:29
chakkara200320-Apr-06 0:29 
AnswerRe: hi all Pin
Mike Ellison20-Apr-06 2:45
Mike Ellison20-Apr-06 2:45 
QuestionAdvice on "Friendly Urls" Pin
Alsvha20-Apr-06 0:24
Alsvha20-Apr-06 0:24 
AnswerRe: Advice on "Friendly Urls" Pin
J4amieC20-Apr-06 0:28
J4amieC20-Apr-06 0:28 
Questionforms authentication Pin
ritu432120-Apr-06 0:15
ritu432120-Apr-06 0:15 
AnswerRe: forms authentication Pin
Mike Ellison20-Apr-06 2:40
Mike Ellison20-Apr-06 2:40 
QuestionThread was being aborted Pin
sohne20-Apr-06 0:06
sohne20-Apr-06 0:06 
AnswerRe: Thread was being aborted Pin
minhpc_bk20-Apr-06 16:13
minhpc_bk20-Apr-06 16:13 
Questiontwo headers for datagrid Pin
luckyv19-Apr-06 23:55
luckyv19-Apr-06 23:55 
AnswerRe: two headers for datagrid Pin
Mike Ellison20-Apr-06 2:39
Mike Ellison20-Apr-06 2:39 
Questionhow to create " help " Pin
scarfaced19-Apr-06 23:52
scarfaced19-Apr-06 23:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.