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

ASP.NET

 
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 
AnswerRe: Please Help Pin
benqazou20-Apr-06 1:28
benqazou20-Apr-06 1:28 
Salam,
First, do you have an SMTP server installed on one of your machines?? Or do you have an email with SMTP support (free webmails like yahoo, hotmail..etc do not allow to send emails programmatically through their SMTP servers...)

Once you have a valid SMTP server, here's some code to do so :


MailMessage mail = new MailMessage();<br />
			mail.To = "xxxx@yahoo.com";<br />
			mail.Bcc = "yyyy@yahoo.com; sersif@mce.gov.ma";<br />
			mail.From = "your email or name";<br />
			mail.Subject = "your subject";<br />
			mail.Body = "your subject";<br />
			mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");	//basic authentication<br />
			mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "YOUR EMAIL USERNAME"); //set your username here<br />
			mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "YOUR EMAIL PASSWORD");	//set your password here<br />
<br />
			SmtpMail.SmtpServer = "10.4.1.2";  //your real server goes here<br />
<br />
				SmtpMail.Send(mail);

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 
QuestionHow I can Restrict my user to dont save documet file on his/her local machine Pin
khurram mukhtar19-Apr-06 23:38
khurram mukhtar19-Apr-06 23:38 

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.