Click here to Skip to main content
15,898,134 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to send an email ? Pin
Parwej Ahamad27-Jun-08 8:21
professionalParwej Ahamad27-Jun-08 8:21 
GeneralRe: How to send an email ? Pin
tina->newcoder27-Jun-08 8:23
tina->newcoder27-Jun-08 8:23 
General[Message Deleted] Pin
Parwej Ahamad27-Jun-08 8:24
professionalParwej Ahamad27-Jun-08 8:24 
GeneralRe: How to send an email ? Pin
tina->newcoder27-Jun-08 8:25
tina->newcoder27-Jun-08 8:25 
GeneralRe: How to send an email ? Pin
tina->newcoder27-Jun-08 8:26
tina->newcoder27-Jun-08 8:26 
GeneralRe: How to send an email ? Pin
Parwej Ahamad27-Jun-08 8:29
professionalParwej Ahamad27-Jun-08 8:29 
GeneralRe: How to send an email ? Pin
tina->newcoder27-Jun-08 8:34
tina->newcoder27-Jun-08 8:34 
GeneralRe: How to send an email ? Pin
Parwej Ahamad27-Jun-08 8:41
professionalParwej Ahamad27-Jun-08 8:41 
Below given code are working fine on my machine.
Note: Which I have mark as bold provide there your gmail id and password.

MailMessage MyMailMessage=new  MailMessage();
MyMailMessage.From = new MailAddress("g.parwez@gmail.com");
MyMailMessage.To.Add("g.parwez@gmail.com");
MyMailMessage.Subject = "Parwej Testing !!!";
MyMailMessage.Body = "This is the test text for Parwej Ahamad";
SmtpClient SMTPServer=new SmtpClient("smtp.gmail.com");
SMTPServer.Port = 587;
SMTPServer.Credentials =new System.Net.NetworkCredential("yourgmaid", "yourgmailpassword");
SMTPServer.EnableSsl = true;
SMTPServer.Send(MyMailMessage);


After that you can check your attachment code.

Parwej Ahamad
R & D: REST services with WCF

Questiondatabase Pin
jds120727-Jun-08 6:09
jds120727-Jun-08 6:09 
AnswerRe: database Pin
NetBot27-Jun-08 6:13
NetBot27-Jun-08 6:13 
GeneralRe: database Pin
jds120727-Jun-08 6:39
jds120727-Jun-08 6:39 
AnswerRe: database Pin
Kschuler27-Jun-08 7:25
Kschuler27-Jun-08 7:25 
AnswerRe: database Pin
Mark Churchill27-Jun-08 16:53
Mark Churchill27-Jun-08 16:53 
QuestionDifficulty Implementing Edit Row with Repeater Pin
Scott MacMaster27-Jun-08 4:49
Scott MacMaster27-Jun-08 4:49 
QuestionSQL Injection advise Pin
dabs27-Jun-08 4:43
dabs27-Jun-08 4:43 
AnswerRe: SQL Injection advise Pin
eyeseetee27-Jun-08 4:52
eyeseetee27-Jun-08 4:52 
GeneralRe: SQL Injection advise Pin
dabs27-Jun-08 5:11
dabs27-Jun-08 5:11 
GeneralRe: SQL Injection advise Pin
NeverHeardOfMe27-Jun-08 5:38
NeverHeardOfMe27-Jun-08 5:38 
GeneralRe: SQL Injection advise Pin
dabs27-Jun-08 6:03
dabs27-Jun-08 6:03 
GeneralRe: SQL Injection advise Pin
NeverHeardOfMe27-Jun-08 6:18
NeverHeardOfMe27-Jun-08 6:18 
QuestionImage Not Refreshing Pin
Member 343561427-Jun-08 4:38
Member 343561427-Jun-08 4:38 
AnswerRe: Image Not Refreshing Pin
eyeseetee27-Jun-08 4:49
eyeseetee27-Jun-08 4:49 
AnswerRe: Image Not Refreshing Pin
Guffa27-Jun-08 6:41
Guffa27-Jun-08 6:41 
QuestionSqlDataAdapter Pin
trilokharry27-Jun-08 4:32
trilokharry27-Jun-08 4:32 
AnswerRe: SqlDataAdapter Pin
Parwej Ahamad27-Jun-08 6:23
professionalParwej Ahamad27-Jun-08 6:23 

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.