contact-form icon indicating copy to clipboard operation
contact-form copied to clipboard

Error sending email: Expected response code 220 but got an empty response

Open piotrpog opened this issue 5 years ago • 5 comments

When i try to send mail (using ajax), plugin returns message indicating that message was sent - success: true.

However no email is sent and in error log i get this message:

2019-06-26 02:35:28 [-][1][-][warning][application] Error sending email: Expected response code 220 but got an empty respons

Mail is supposed to be sent using server sendmail functionality - nothing was overwritten in config/app.php file.

I also tested if sendmail works using simple phpmailer script - and it works correctly. So issue seems to be with contact form plugin.

If you want, i can send you a log file.

piotrpog avatar Jun 26 '19 09:06 piotrpog

Is Craft able to send other emails, such as password reset emails?

brandonkelly avatar Jul 07 '19 14:07 brandonkelly

I have a similar problem. I got this error when I send form using jQuery post method. Failed to load resource: the server responded with a status of 500 () I noticed that It will be triggered when I set environment variable to fromEmail option in Setting > Email. It be able to send a mail but fail to get response data.

watarutmnh avatar Jul 08 '19 04:07 watarutmnh

I get this when using Sendmail. I am using SMTP, but I may have other issues with SMTP, it seems to send the email even though its spam and not show an error. I want to use Sendmail to test, but I get this "Expected response code 220 but got an empty respons"

amityweb avatar Sep 23 '19 12:09 amityweb

I had this proplem to running Craft CMS on Docksal with MailHog, we were able to resolve it by switching transport type from Sendmail to SMTP configured as below:

image

timack avatar Jan 24 '20 00:01 timack

Running into the same issue on a site that uses Sendmail for e-mail delivery.

janhenckens avatar Jun 02 '20 08:06 janhenckens