Forms Email Notification Error

Jacob Mallach asked on April 20, 2021 18:45

When a user submits a form on our webpage the email notification is not sending and logging an error.

Here is the error messages logged in the CMS.

  1. Failure sending mail.

Unable to write data to the transport connection: An established connection was aborted by the software in your host machine.

An established connection was aborted by the software in your host machine

Appreciate the help!

Recent Answers


Juraj Ondrus answered on April 21, 2021 07:22

I would recommend checking the SMTP settings in Kentico to make sure you are connecting to the right SMTP. Then, also check the SMTP Server itself for more detailed errors. The error basically means that the SMTP server closed the connection while your application was trying to send a large e-mail. It looks like there could have been some time out or other error. Or, maybe SSL/TLS issue.
Are other emails sent OK? How many emails are you sending? Is the SMTP server able to handle the load?

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on April 22, 2021 10:01

Are you by any chance using SendGrid as SMTP and have username/password as credentials?

As of last year they require Two-Factor authentication, and normal username/pass is no longer allowed.

You need to login to sendgrid and create an API key (set proper permissions) and update your settings:

user_name: "apikey"
password: <Your API Key>

more info: https://sendgrid.com/docs/for-developers/sending-email/upgrade-your-authentication-method-to-api-keys/

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.