Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
piotrpog opened this issue Jun 26, 2019 · 5 comments
Open

Comments

@piotrpog
Copy link

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.

@brandonkelly
Copy link
Member

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

@watarutmnh
Copy link
Contributor

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.

@amityweb
Copy link

amityweb commented Sep 23, 2019

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"

@timack
Copy link

timack commented Jan 24, 2020

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

@janhenckens
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants