Error: "System.Net.Mail.SmtpException: Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail"

Error: "System.Net.Mail.SmtpException: Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail"

book

Article ID: KB0070154

calendar_today

Updated On:

Products Versions
Spotfire Automation Services All supported versions

Description

Description:

While executing a Spotfire Automation Services job, you may run into the following error:

The task 'Send Email' could not be executed. Failed to send email using SMTP server 'smtp.office365.com' from '<email address>' to '<email address>'.

Reason: System.Net.Mail.SmtpException: Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail. 
 

Issue/Introduction

This article discusses the following error, and suggests steps to resolve it: System.Net.Mail.SmtpException: Error in processing."The server response was: 5.7.3 STARTTLS is required to send mail"

Environment

All supported operating systems

Resolution

This is a general SMTP configuration error, not specific to Spotfire. The error indicates that Transport Layer Security (TLS) encryption is required, but apparently it was not set up. You will need to update the SMTP configuration to make it use TLS.

The online third-party discussion at the following URL addresses this issue:

https://stackoverflow.com/questions/71116436/database-mail-will-not-send-email-to-smtp-office365-com


Steps:

1) Enable SSL options.
2) Under Advanced E-Mail Properties, add the following details:
  - mail.smtp.starttls.enable=true
  - mail.smtp.starttls.required=false

Additional Information

Link: https://stackoverflow.com/questions/71116436/database-mail-will-not-send-email-to-smtp-office365-com