Jump to content

SMTP is throwing an exception setting up an automation job to send an email with the below error: What may be the cause of this error I am using google SMTP?

Siphamandla Zolakhe

Recommended Posts

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. i12-20020a1c540c000000b003a2f2bb72d5sm12666443wmb.45 - gsmtp

  at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)

  at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)

  at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)

  at System.Net.Mail.SmtpClient.Send(MailMessage message)

  at Spotfire.Dxp.Automation.Tasks.Tasks.SendEmail.SendTheMail(TaskExecutionContext context, String smtpHost, String fromAddress, String messageBody, AttachmentsInfo attachmentsInfo)


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...