PHP form to email problem

falconer

Registered Member
Joined
Dec 17, 2009
Messages
92
Reaction score
121
Hi All,

Please forgive my technical ignorance. I am only able to explain my problem in non-tech language, but hopefully some kind soul can help me?

I have an html form on website that when submitted sends 2 emails using PHP mail function. The first is sent to me telling me someone has submitted the form, and for tracking purposes what page it was sent from. The second email is sent to the email address of the submitter. The mailing for both is done from the same PHP script. All works well on my primary domain.

I then added two more domains using cpanel, and uploaded the very same form and script to each of them. Now my problem is that when the form is submitted on these new added domains, only the email to me is sent. The email to the submitter is not received. I get no error messages.

I made sure the "From" email is a real email on the domain that the form is on.

Any help or advice would be warmly welcomed!
 
Please share the code, without that it's very hard to help.
Posted via Mobile Device
 
Hmm yeah from what you've said I can't see why the script wouldn't work on the new domains.

Post your script and we'll be able to help.
 
Make sure all recepient variables are filled, $to, $cc, google for mail php function and follow the instructions precisely, on some servers this can be problem
 
Some host by default disable mail sent to external hosts. either you need to enable it or ask the hosting provider.
 
Back
Top