Click here to Skip to main content
15,890,717 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: problem in check box Pin
eyeseetee28-Oct-08 23:11
eyeseetee28-Oct-08 23:11 
AnswerRe: problem in check box Pin
sharath0729-Oct-08 1:21
sharath0729-Oct-08 1:21 
GeneralRe: problem in check box Pin
susan_15161529-Oct-08 19:58
susan_15161529-Oct-08 19:58 
Questioncategory tree like structure Pin
S.Dhanasekaran28-Oct-08 21:14
S.Dhanasekaran28-Oct-08 21:14 
Questionhow to issue STARTTLS command Pin
raghvendrapanda28-Oct-08 21:04
raghvendrapanda28-Oct-08 21:04 
AnswerRe: mail sending problem Pin
GDMFSOB28-Oct-08 21:12
GDMFSOB28-Oct-08 21:12 
GeneralRe: mail sending problem Pin
raghvendrapanda28-Oct-08 21:26
raghvendrapanda28-Oct-08 21:26 
GeneralRe: mail sending problem Pin
Himanshu Manjarawala23-Apr-12 19:49
Himanshu Manjarawala23-Apr-12 19:49 
Hi,
here is my code, which is same as your one. but not working as System.Net.Mail classes doesn't support SMTPS.

C#
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 21:35
GDMFSOB28-Oct-08 21:35 
QuestionHow do I restrict IPv6 IP Address Ranges? Pin
GDMFSOB28-Oct-08 20:42
GDMFSOB28-Oct-08 20:42 
QuestionRegular Expression Pin
varsh1228-Oct-08 20:24
varsh1228-Oct-08 20:24 
AnswerRe: Regular Expression Pin
Christian Graus28-Oct-08 20:42
protectorChristian Graus28-Oct-08 20:42 
AnswerRe: Regular Expression Pin
Eduard Keilholz28-Oct-08 21:57
Eduard Keilholz28-Oct-08 21:57 
GeneralRe: Regular Expression Pin
varsh1228-Oct-08 23:33
varsh1228-Oct-08 23:33 
GeneralRe: Regular Expression Pin
Eduard Keilholz29-Oct-08 0:31
Eduard Keilholz29-Oct-08 0:31 
QuestionHow to get the Gridview data into DataTable [modified] Pin
K V Sekhar28-Oct-08 20:08
K V Sekhar28-Oct-08 20:08 
AnswerRe: How to get the Gridview data into DataTable Pin
meeram39528-Oct-08 21:18
meeram39528-Oct-08 21:18 
GeneralRe: How to get the Gridview data into DataTable Pin
K V Sekhar28-Oct-08 21:28
K V Sekhar28-Oct-08 21:28 
GeneralRe: How to get the Gridview data into DataTable Pin
K V Sekhar28-Oct-08 21:47
K V Sekhar28-Oct-08 21:47 
GeneralRe: How to get the Gridview data into DataTable Pin
K V Sekhar28-Oct-08 22:12
K V Sekhar28-Oct-08 22:12 
GeneralRe: How to get the Gridview data into DataTable Pin
meeram39529-Oct-08 1:02
meeram39529-Oct-08 1:02 
AnswerRe: How to get the Gridview data into DataTable Pin
S.Dhanasekaran28-Oct-08 21:36
S.Dhanasekaran28-Oct-08 21:36 
QuestionUsers Loose Sessions Pin
Vimalsoft(Pty) Ltd28-Oct-08 19:51
professionalVimalsoft(Pty) Ltd28-Oct-08 19:51 
AnswerRe: Users Loose Sessions Pin
Christian Graus28-Oct-08 20:40
protectorChristian Graus28-Oct-08 20:40 
GeneralRe: Users Loose Sessions Pin
Vimalsoft(Pty) Ltd28-Oct-08 21:05
professionalVimalsoft(Pty) Ltd28-Oct-08 21: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.