While sending an email, I\'m receiving a bunch of such errors:
A PHP Error was encountered
Severity: Notice
Message: fwrite(): send of 12 bytes failed with
If you are using cpanel for your website smtp restrictions are problem and cause this error.
SMTP Restrictions
This feature prevents users from bypassing the mail server to send mail, a common practice used by spammers. It will allow only the MTA, mailman, and root to connect to remote SMTP servers.
This control is also adjustable in Tweak Settings.
This setting has been updated.
The SMTP restriction is disabled.
I had a similar problem and had to disable SMTP Restrictions. After that all was ok.