Email from PHP forms issue

canou83

Well-Known Member
Jul 20, 2016
78
7
8
France
cPanel Access Level
Website Owner
Hi, so far we use SMPT connections with external email servers for sending emails (for example, account opening form ...)

I try to use the mailing of these forms in phph mail rather when SMPT.

Our sites are in AutoSSL.

During my tests, I find that emails to Exchanges boxes never arrive.

an idea ? Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

Your access level shows as "Website Owner". I recommend reporting this issue to your web hosting provider so they can take a closer look, as it's possible the "SMTP Restrictions" option in enabled from Web Host Manager.

Thank you.
 

canou83

Well-Known Member
Jul 20, 2016
78
7
8
France
cPanel Access Level
Website Owner
Hello. I am not only a prorpiétaire but also the manager and the host of my site on a VPS / OVH. I have root access in WHM.

No SMTP Restrictions in WHM.

Everything works correctly in SMTP (we use OVH emails servers other than VPS) but I wanted to try in PHP MAIL.

Ec'ets in PHP mail that we have reception problems with some founrisseurq like Exchange for example that does not receive the emails generated by php mail.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

Do you notice any output to /var/log/exim_mainlog when attempting to send the message? EX:

Code:
exigrep remote-smtp-server /var/log/exim_mainlog
Also, check that you can manually connect to that remote mail server from your cPanel server over the port you have configured in the PHP script. EX:

Code:
telnet remote-mail-server 25
Thank you.