1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP form to email problem

Discussion in 'PHP & Perl' started by falconer, Mar 18, 2010.

  1. falconer

    falconer Registered Member

    Joined:
    Dec 17, 2009
    Messages:
    92
    Likes Received:
    116
    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!
     
  2. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    714
    Location:
    127.0.0.1
    Please share the code, without that it's very hard to help.
    Posted via Mobile Device
     
  3. yeahright

    yeahright Registered Member

    Joined:
    Jan 17, 2009
    Messages:
    93
    Likes Received:
    32
    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.
     
  4. MirniPobjednik

    MirniPobjednik Registered Member

    Joined:
    Mar 12, 2009
    Messages:
    58
    Likes Received:
    10
    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
     
  5. phpmentor

    phpmentor Newbie

    Joined:
    Feb 27, 2010
    Messages:
    17
    Likes Received:
    2
    Some host by default disable mail sent to external hosts. either you need to enable it or ask the hosting provider.