Click here to Skip to main content
       

ASP.NET

 
AnswerRe: problem in check box PinmvpGuffa28-Oct-08 23:54 
GeneralRe: problem in check box Pinmembersusan_15161528-Oct-08 23:59 
GeneralRe: problem in check box PinmvpGuffa29-Oct-08 10:17 
GeneralRe: problem in check box Pinmembersusan_15161529-Oct-08 21:01 
GeneralRe: problem in check box PinmvpGuffa29-Oct-08 22:15 
GeneralRe: problem in check box Pinmembersusan_1516152-Nov-08 18:33 
AnswerRe: problem in check box Pinmembereyeseetee29-Oct-08 0:11 
AnswerRe: problem in check box Pinmembersharath0729-Oct-08 2:21 
GeneralRe: problem in check box Pinmembersusan_15161529-Oct-08 20:58 
Questioncategory tree like structure PinmemberS.Dhanasekaran28-Oct-08 22:14 
Questionhow to issue STARTTLS command Pinmemberraghvendrapanda28-Oct-08 22:04 
AnswerRe: mail sending problem PinmemberGDMFSOB28-Oct-08 22:12 
GeneralRe: mail sending problem Pinmemberraghvendrapanda28-Oct-08 22:26 
GeneralRe: mail sending problem PinmemberHimanshu 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 PinmemberGDMFSOB28-Oct-08 22:35 
QuestionHow do I restrict IPv6 IP Address Ranges? PinmemberGDMFSOB28-Oct-08 21:42 
QuestionRegular Expression Pinmemberahmad2528-Oct-08 21:24 
AnswerRe: Regular Expression PinmvpChristian Graus28-Oct-08 21:42 
AnswerRe: Regular Expression PinmemberEduard Keilholz28-Oct-08 22:57 
GeneralRe: Regular Expression Pinmemberahmad2529-Oct-08 0:33 
GeneralRe: Regular Expression PinmemberEduard Keilholz29-Oct-08 1:31 
QuestionHow to get the Gridview data into DataTable [modified] Pinmembersekhar.k28-Oct-08 21:08 
AnswerRe: How to get the Gridview data into DataTable Pinmembermeeram39528-Oct-08 22:18 
GeneralRe: How to get the Gridview data into DataTable Pinmembersekhar.k28-Oct-08 22:28 
GeneralRe: How to get the Gridview data into DataTable Pinmembersekhar.k28-Oct-08 22:47 
GeneralRe: How to get the Gridview data into DataTable Pinmembersekhar.k28-Oct-08 23:12 
GeneralRe: How to get the Gridview data into DataTable Pinmembermeeram39529-Oct-08 2:02 
AnswerRe: How to get the Gridview data into DataTable PinmemberS.Dhanasekaran28-Oct-08 22:36 
QuestionUsers Loose Sessions PinmemberVuyiswa Maseko28-Oct-08 20:51 
AnswerRe: Users Loose Sessions PinmvpChristian Graus28-Oct-08 21:40 
GeneralRe: Users Loose Sessions PinmemberVuyiswa Maseko28-Oct-08 22:05 
GeneralRe: Users Loose Sessions PinmemberLloyd Atkinson29-Oct-08 6:33 
QuestionGetting Error when exporting Gridview data to excel Pinmember Satish - Developer28-Oct-08 20:41 
QuestionCalling java script Pinmemberalok_2k328-Oct-08 20:14 
QuestionCrystal Report (PDF Format) PinmemberLishaDamian28-Oct-08 19:52 
Questionasp.net ebooks Pinmemberopen your mind28-Oct-08 19:22 
AnswerRe: asp.net ebooks PinmvpChristian Graus28-Oct-08 20:23 
GeneralRe: asp.net ebooks PinmemberJohn Gathogo28-Oct-08 20:52 
GeneralRe: asp.net ebooks PinmvpChristian Graus28-Oct-08 21:45 
GeneralRe: asp.net ebooks PinmvpCPallini29-Oct-08 0:35 
AnswerRe: asp.net ebooks PinmemberVuyiswa Maseko28-Oct-08 21:06 
GeneralRe: asp.net ebooks PinmvpChristian Graus28-Oct-08 21:45 
GeneralRe: asp.net ebooks PinmemberVuyiswa Maseko28-Oct-08 21:48 
GeneralRe: asp.net ebooks PinmvpChristian Graus28-Oct-08 21:55 
GeneralRe: asp.net ebooks PinmemberVuyiswa Maseko28-Oct-08 21:59 
GeneralRe: asp.net ebooks PinmvpChristian Graus28-Oct-08 22:07 
GeneralRe: asp.net ebooks PinmemberVuyiswa Maseko28-Oct-08 22:10 
GeneralRe: asp.net ebooks PinmvpColin Angus Mackay28-Oct-08 23:40 
GeneralRe: asp.net ebooks PinmemberVuyiswa Maseko28-Oct-08 23:45 
AnswerRe: asp.net ebooks PinmemberLloyd Atkinson29-Oct-08 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web01 | 2.8.1411022.1 | Last Updated 22 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid