V
vik
I use SmtpClient to send email in my program, and I set the
UserDefaultCredentials to true to use the logged on user's credentials.
However it doesn't work on authenticated SMTP server. It will throws
exception saying 'System.Net.Mail.SmtpException: The SMTP server requires a
secure connection or the client was not authenticated. The server response
was: 5.7.3 Client was not authenticated'
However if I set UserDefaultCredentials to false and hard-coded my login and
password for SmtpClient.Credentials, it works. It seems as if the
UseDefaultCredentials does not set loggon user's credentials correctly.
Any help would really appreciated.
Vik
UserDefaultCredentials to true to use the logged on user's credentials.
However it doesn't work on authenticated SMTP server. It will throws
exception saying 'System.Net.Mail.SmtpException: The SMTP server requires a
secure connection or the client was not authenticated. The server response
was: 5.7.3 Client was not authenticated'
However if I set UserDefaultCredentials to false and hard-coded my login and
password for SmtpClient.Credentials, it works. It seems as if the
UseDefaultCredentials does not set loggon user's credentials correctly.
Any help would really appreciated.
Vik