DianeV

Member
Apr 11, 2007
7
0
151
Last week, we got a new server with WHM/cPanel, and have moved our websites to it.

Although email sent from the website scripts worked properly on earlier servers, the new server sends all email from [email protected] instead of [email protected], regardless of whether it's generated from:

- a contact page Perl .cgi script via sendmail
- a PHP script
- a shopping cart via smtp

In all cases, the "from" address is specified in the script (but apparently ignored when the email is sent).

The fact that sendmail, PHP and smtp are all doing it makes me suspect that it's an overall server setting rather than a fault with the scripts themselves, which appear to work properly. For instance, email can be sent from the contact page and orders can placed through the shopping cart, but the emails (and shopping cart order confirmation emails) are now sent from [email protected].

And, of course, many servers dev/null the emails since they cannot verify the addresses ("Could not complete sender verify").

Can anyone point me to a resolution?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
- a contact page Perl .cgi script via sendmail
- a PHP script
- a shopping cart via smtp
Hello :)

Email sent with SMTP authentication should not display the behavior you have described. Could you upload and use a test PHP script that uses SMTP authentication for sending email so you can rule out an issue with the particular script you are using?

Thank you.
 

DianeV

Member
Apr 11, 2007
7
0
151
Hi. I gave a little misinformation in my post. We have moved only one site to the new server, and one PHP script worked correctly. Other scripts didn't, however (on either server). Both servers had the same configuration.

The host company made the following changes to both servers:
- reverting to an earlier Apache version (I don't know if this was needed)
- adding MX records for the host

On the older server, once the above changes were made, the email scripts worked correctly -- emails were sent from the correct address and arrived with all information intact.

On the new server, the emails were sent from the correct email address, but user input fields (or order information) was blank. The host is looking into this now.

Thanks for responding. If I need more, I'll post again. I just wanted to add this info in case someone else encounters this issue.

Diane