Click here to Skip to main content
12,072,809 members (71,919 online)
   

ASP.NET

 
AnswerRe: problem in check box Pin
eyeseetee29-Oct-08 0:11
membereyeseetee29-Oct-08 0:11 
AnswerRe: problem in check box Pin
sharath0729-Oct-08 2:21
membersharath0729-Oct-08 2:21 
GeneralRe: problem in check box Pin
susan_15161529-Oct-08 20:58
membersusan_15161529-Oct-08 20:58 
Questioncategory tree like structure Pin
S.Dhanasekaran28-Oct-08 22:14
memberS.Dhanasekaran28-Oct-08 22:14 
Questionhow to issue STARTTLS command Pin
raghvendrapanda28-Oct-08 22:04
memberraghvendrapanda28-Oct-08 22:04 
AnswerRe: mail sending problem Pin
GDMFSOB28-Oct-08 22:12
memberGDMFSOB28-Oct-08 22:12 
GeneralRe: mail sending problem Pin
raghvendrapanda28-Oct-08 22:26
memberraghvendrapanda28-Oct-08 22:26 
GeneralRe: mail sending problem Pin
Himanshu Manjarawala23-Apr-12 20:49
memberHimanshu Manjarawala23-Apr-12 20:49 
Hi,
here is my code, which is same as your one. but not working as System.Net.Mail classes doesn't support SMTPS.

SmtpClient client = new SmtpClient("smtp.gmail.com", 465);
                MailMessage mail_msg = new MailMessage();
 
                MailAddress fromAdd = new MailAddress(tbFrom.Text.Trim());
                mail_msg.From = fromAdd;
                mail_msg.To.Add(new MailAddress(tbTo.Text.Trim()));
                mail_msg.Subject = tbSubject.Text;
                mail_msg.IsBodyHtml = true;
                mail_msg.Body = "Message From: " + tbFrom.Text.Trim() + "Subject:" + tbSubject.Text.Trim() + "Email: " + tbTo.Text.Trim() + "Content: " + tbContent.Text.Trim();
 
                System.Net.NetworkCredential basicCredential = new System.Net.NetworkCredential(tbFrom.Text, "my password");
                client.EnableSsl = true;
                client.UseDefaultCredentials = false;
                client.Credentials = basicCredential;
                client.Send(mail_msg);
Himanshu Manjarawala.
Sr. Software engineer @AutomationAnywhere
http://www.himanshumbi.blogspot.com
http://www.fieredotnet.wordpress.com

AnswerRe: how to issue STARTTLS command Pin
GDMFSOB28-Oct-08 22:35
memberGDMFSOB28-Oct-08 22:35 
QuestionHow do I restrict IPv6 IP Address Ranges? Pin
GDMFSOB28-Oct-08 21:42
memberGDMFSOB28-Oct-08 21:42 
QuestionRegular Expression Pin
ahmad2528-Oct-08 21:24
memberahmad2528-Oct-08 21:24 
AnswerRe: Regular Expression Pin
Christian Graus28-Oct-08 21:42
mvpChristian Graus28-Oct-08 21:42 
AnswerRe: Regular Expression Pin
Eduard Keilholz28-Oct-08 22:57
memberEduard Keilholz28-Oct-08 22:57 
GeneralRe: Regular Expression Pin
ahmad2529-Oct-08 0:33
memberahmad2529-Oct-08 0:33 
GeneralRe: Regular Expression Pin
Eduard Keilholz29-Oct-08 1:31
memberEduard Keilholz29-Oct-08 1:31 
QuestionHow to get the Gridview data into DataTable [modified] Pin
sekhar.k28-Oct-08 21:08
membersekhar.k28-Oct-08 21:08 
AnswerRe: How to get the Gridview data into DataTable Pin
meeram39528-Oct-08 22:18
membermeeram39528-Oct-08 22:18 
GeneralRe: How to get the Gridview data into DataTable Pin
sekhar.k28-Oct-08 22:28
membersekhar.k28-Oct-08 22:28 
GeneralRe: How to get the Gridview data into DataTable Pin
sekhar.k28-Oct-08 22:47
membersekhar.k28-Oct-08 22:47 
GeneralRe: How to get the Gridview data into DataTable Pin
sekhar.k28-Oct-08 23:12
membersekhar.k28-Oct-08 23:12 
GeneralRe: How to get the Gridview data into DataTable Pin
meeram39529-Oct-08 2:02
membermeeram39529-Oct-08 2:02 
AnswerRe: How to get the Gridview data into DataTable Pin
S.Dhanasekaran28-Oct-08 22:36
memberS.Dhanasekaran28-Oct-08 22:36 
QuestionUsers Loose Sessions Pin
Vuyiswa Maseko28-Oct-08 20:51
memberVuyiswa Maseko28-Oct-08 20:51 
AnswerRe: Users Loose Sessions Pin
Christian Graus28-Oct-08 21:40
mvpChristian Graus28-Oct-08 21:40 
GeneralRe: Users Loose Sessions Pin
Vuyiswa Maseko28-Oct-08 22:05
memberVuyiswa Maseko28-Oct-08 22:05 

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.


Advertise | Privacy | Mobile
Web03 | 2.8.160208.1 | Last Updated 10 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid