Configure return path/sender in PHP mail() scripts?

Pete Downes

Registered
May 3, 2018
1
0
1
UK
cPanel Access Level
Website Owner
Hi Forum

I'm sure this is an old chestnut but I would welcome any thoughts.

I would like to configure the return path/sender in PHP mail() scripts to avoid mail sent from the server going into spam.

Plesk allows me to do it:
support.plesk.com/hc/en-us/articles/115000419013-What-is-the-return-path-sender-in-PHP-mail-scripts-and-how-to-change-it

But if my WordPress website is hosted on cPanel I cannot. Sure I could install a WordPress Plugin to send via SMTP but that seems a but drastic.


Are cPanel and WordPress letting us down in this regard?

Thanks
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston