Php mail Sending error or issue

hmaddy

Verified User
Joined
Apr 17, 2019
Messages
292
Php mail Sending error or issue.
 

Attachments

  • emails.jpg
    emails.jpg
    86.9 KB · Views: 33
look like you got blocked outgoing smtp
maybe by CSF Firewall


please look at csf firewall setting option
SMTP_BLOCK

should set it to "0" or Disable

UPDATE:
If you don't want disable, You need to use SMTP_ALLOWUSER option to use external smtp
 
Last edited:
That is not a good secure advice.

Please keep SMTP_BLOCK = "1" so keep that enabled, this way smtp is more secured. There is no need whatsoever to disable this.

To enable php scripts to function, just enable this setting right below it.
SMTP_ALLOWLOCAL = "1"
and check this:
SMTP_PORTS = "25,465,587"

Also check that port 465 is open for outgoing traffic.

Next to that, this is probably also caused by an error in your scripts, since it shows the "header already sent" warning.

Might also be related to use something about using gmail as smtp from your server, I've seen some topics about it, but didn't get into it.
 
Back
Top