Click here to Skip to main content
15,920,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: Filenames and open file dialog Pin
Not Active29-Mar-10 9:53
mentorNot Active29-Mar-10 9:53 
GeneralRe: Filenames and open file dialog Pin
SRJ9229-Mar-10 9:54
SRJ9229-Mar-10 9:54 
GeneralRe: Filenames and open file dialog Pin
Dave Kreskowiak29-Mar-10 10:00
mveDave Kreskowiak29-Mar-10 10:00 
GeneralRe: Filenames and open file dialog Pin
SRJ9229-Mar-10 10:07
SRJ9229-Mar-10 10:07 
QuestionDoes anybody have ups rate calculator for asp.net? Pin
bigeyed29-Mar-10 7:15
bigeyed29-Mar-10 7:15 
AnswerRe: Does anybody have ups rate calculator for asp.net? Pin
Not Active29-Mar-10 7:28
mentorNot Active29-Mar-10 7:28 
AnswerRe: Does anybody have ups rate calculator for asp.net? Pin
Dave Kreskowiak29-Mar-10 9:57
mveDave Kreskowiak29-Mar-10 9:57 
Questiondid you Google Block Gmail?! Pin
Jassim Rahma29-Mar-10 5:50
Jassim Rahma29-Mar-10 5:50 
I am using this code to send email through Gmailand everything was fine until recently.. I am now getting this error:

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
What's the problem?!!

This is is code I was using for long time already:

NetworkCredential loginInfo = new NetworkCredential(gMailAccount, password);
MailMessage msg = new MailMessage();

msg.Sender = new MailAddress(from, displayname);
msg.ReplyTo = new MailAddress(from, displayname);
msg.From = new MailAddress(from, displayname);
msg.To.Add(new MailAddress(to, "Jassim Rahma"));
msg.Subject = subject;
message = message.Replace(@"\r\n", Environment.NewLine);
msg.Body = message;
msg.Priority = MailPriority.High;
msg.IsBodyHtml = true;

Attachment mail_attachment = new Attachment(Application.StartupPath + "\\rbuilder.log");

if (technical_data == true)
{
    msg.Attachments.Add(mail_attachment);
}

SmtpClient client = new SmtpClient("smtp.gmail.com");
client.Port = 587;
client.EnableSsl = true;
client.UseDefaultCredentials = false;
client.Credentials = loginInfo;
client.Send(msg);

MessageBox.Show("Thank you." +Environment.NewLine + Environment.NewLine + "Your email was receieved.", "Feedback", MessageBoxButtons.OK, MessageBoxIcon.Information);

return true;

AnswerRe: did you Google Block Gmail?! Pin
Richard MacCutchan29-Mar-10 6:41
mveRichard MacCutchan29-Mar-10 6:41 
GeneralRe: did you Google Block Gmail?! Pin
Jassim Rahma29-Mar-10 11:30
Jassim Rahma29-Mar-10 11:30 
GeneralRe: did you Google Block Gmail?! [modified] Pin
Richard MacCutchan29-Mar-10 11:41
mveRichard MacCutchan29-Mar-10 11:41 
QuestionTreeview aftercheck Pin
Wannes Geysen29-Mar-10 5:21
Wannes Geysen29-Mar-10 5:21 
AnswerRe: Treeview aftercheck Pin
Kevin Marois29-Mar-10 5:28
professionalKevin Marois29-Mar-10 5:28 
AnswerRe: Treeview aftercheck Pin
Tarakeshwar Reddy29-Mar-10 6:44
professionalTarakeshwar Reddy29-Mar-10 6:44 
GeneralRe: Treeview aftercheck Pin
Wannes Geysen29-Mar-10 21:25
Wannes Geysen29-Mar-10 21:25 
QuestionGet list of groups for a given user using ActiveDirectory Pin
QuickDeveloper29-Mar-10 2:18
QuickDeveloper29-Mar-10 2:18 
AnswerRe: Get list of groups for a given user using ActiveDirectory Pin
Abhinav S29-Mar-10 4:05
Abhinav S29-Mar-10 4:05 
QuestionAutomatic Server Shutdown Pin
FJJCENTU29-Mar-10 0:18
FJJCENTU29-Mar-10 0:18 
AnswerRe: Automatic Server Shutdown Pin
DaveyM6929-Mar-10 0:48
professionalDaveyM6929-Mar-10 0:48 
AnswerRe: Automatic Server Shutdown Pin
David Skelly29-Mar-10 1:56
David Skelly29-Mar-10 1:56 
AnswerRe: Automatic Server Shutdown Pin
Dave Kreskowiak29-Mar-10 3:43
mveDave Kreskowiak29-Mar-10 3:43 
QuestionRemoving items from list while performing operations on it Pin
xkrja29-Mar-10 0:17
xkrja29-Mar-10 0:17 
AnswerRe: Removing items from list while performing operations on it Pin
Keith Barrow29-Mar-10 0:47
professionalKeith Barrow29-Mar-10 0:47 
AnswerRe: Removing items from list while performing operations on it Pin
SeMartens29-Mar-10 0:48
SeMartens29-Mar-10 0:48 
Questionusing (SqlTransaction... ) Pin
Dewald29-Mar-10 0:12
Dewald29-Mar-10 0:12 

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.