I have figured the SMTP and found it works to send out the test email successfully when the option "Turn this module on or off" is "Off". However, when I turn on this option and send the test email again it displayed the following message which failed to send out the email.

"Notice: fputs() [function.fputs]: send of 22 bytes failed with errno=32 Broken pipe in SMTP->SendHello() (line 499 of /myaccount.../public_html/sites/all/modules/smtp/smtp.transport.inc).
Unable to send e-mail. Contact the site administrator if the problem persists."

Now in order to make it works, I have to temporary turn this option to "Off" and all my webforms are working well without problem. I can receive form submission on this "Off" mode. But once I turn it on and submit the webform or test email, the message above shown and failed to receive email.... very weird... any idea ?

Comments

simone960’s picture

Title: <strong>"Notice: fputs() [function.fputs]: send of 22 bytes failed » Notice: fputs() [function.fputs]: send of 22 bytes failed
wundo’s picture

Status: Active » Closed (outdated)
bcobin’s picture

I'm seeing the same behavior. Did anyone ever figure this out? In the meantime, thanks for the tip about turning the module off.

Wha??!!

vslklv’s picture

I saw same error in Drupal 8.4.8, trying to send e-mail with Gmail account.
When I chose "Use encrypted protocol" -> "Use SSL" there was no error and the test email was sent.