I had been using this programming for a couple of months, its awesome, but
then somebody decided to change to google hosting. Im having trouble sending
emails, heres the error log:
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. l28sm777973waf.5
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at SubversionNotify.Program.PostCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName, String baseFolder)
Im assuming its because of the lack of security, how does one turn TLS on ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Erik,
I have added a new attribute to the <MailServer> element called UseSecureConnection. This should instruct the SmtpClient to use the STARTTLS command and properly connect to the Gmail server. Please note that this change was made to the new version 2.0.1 of the tool.
Please check out the new project site at http://www.SubversionNotify.com and review the documentation on how to upgrade from a 1.x version to 2.x. Once you have installed the 2.0 version, you'll need to pull the changed files for the 2.0.1 version that contains your specific request. Instructions on how to do that are on the "change log" page of the site.
If you have any questions or suggestions, please let me know.
Thanks,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had been using this programming for a couple of months, its awesome, but
then somebody decided to change to google hosting. Im having trouble sending
emails, heres the error log:
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. l28sm777973waf.5
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at SubversionNotify.Program.PostCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName, String baseFolder)
Im assuming its because of the lack of security, how does one turn TLS on ?
Erik,
I have added a new attribute to the <MailServer> element called UseSecureConnection. This should instruct the SmtpClient to use the STARTTLS command and properly connect to the Gmail server. Please note that this change was made to the new version 2.0.1 of the tool.
Please check out the new project site at http://www.SubversionNotify.com and review the documentation on how to upgrade from a 1.x version to 2.x. Once you have installed the 2.0 version, you'll need to pull the changed files for the 2.0.1 version that contains your specific request. Instructions on how to do that are on the "change log" page of the site.
If you have any questions or suggestions, please let me know.
Thanks,
Mike
Thank you Mr. McKechney you are the Awesomeness ! Working perfectly ! = )