SendEmail failed authentication error
Posted: March 28th, 2024, 10:31 am
Ran into an issue where in a specific BatchJob, emails were failing to send targeted attachments.
When building the sources, the email attachments will successfully send the specified attachments once and fail to run every time after that returning this error message
<Message>Authentication failed because the remote party has closed the transport stream.</Message>
The cause of this was because the security protocol for .NET wasn't a high enough level in the batchJob.
This was resolved by reaching out to the internal team to apply that change and to set it in the BatchJob server
When building the sources, the email attachments will successfully send the specified attachments once and fail to run every time after that returning this error message
<Message>Authentication failed because the remote party has closed the transport stream.</Message>
The cause of this was because the security protocol for .NET wasn't a high enough level in the batchJob.
This was resolved by reaching out to the internal team to apply that change and to set it in the BatchJob server