G
Guy
I use SmtpClient to send mail. My customer reported that sending mail
was throwing an exception on his machine "the SMPT client requires a
secure connection or the client was not authenticated".
so I now provide credentials with my request, however it sends mail
all the time, whichever username or password I use. I even removed the
password from my Outlook account options. Sends mail anyway ?
Is there a credential cache in Windows taking effect ?
cred = new NetworkCredential(strUserName, strPassword);
smtp = new SmtpClient();
smtp.Host = strMailHost;
smtp.UseDefaultCredentials = false;
smtp.Credentials = cred;
was throwing an exception on his machine "the SMPT client requires a
secure connection or the client was not authenticated".
so I now provide credentials with my request, however it sends mail
all the time, whichever username or password I use. I even removed the
password from my Outlook account options. Sends mail anyway ?
Is there a credential cache in Windows taking effect ?
cred = new NetworkCredential(strUserName, strPassword);
smtp = new SmtpClient();
smtp.Host = strMailHost;
smtp.UseDefaultCredentials = false;
smtp.Credentials = cred;