contact-form
contact-form copied to clipboard
Error sending email: Expected response code 220 but got an empty response
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.
Is Craft able to send other emails, such as password reset emails?
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.
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"
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:

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