PHP form mail error....

Discussion in 'Installation/Configuration' started by pjm2211, Nov 3, 2005.

  1. pjm2211

    pjm2211 New Member

    ...I am trying to create a form when hitting submit, it emails the contents of the form to me. I am using a php script called Jack's Formmail....is that good or bad?? Not sure, but I've had it working on other webservers....My problem is, when I hit submit.......It sends me an email from 'apache@localhost.localdomain' , and not from webmaster@xyzdomain.com like I have set in my php script. Also, it doesn't email the contents of the form either. do I need to store php scripts somewhere other than my /web1/web folder for this to work? Any ideas would be helpful.. Thanks again.
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. pjm2211

    pjm2211 New Member

    ok...i turned register_globals to on. Now the redirect works, and the email I get has the correct sent from.....ie> webmaster@xyzdomain.com, but the email is still blank. Doesn't send my form data. Any suggestions?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I recommend to use another formmail script that does not require register_globals = on, because this setting might be a security risk.
     
  5. pjm2211

    pjm2211 New Member

    do you have any suggestions for a formmail script?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    No, but I am sure you will find one at e.g. hotscripts.com
     

Share This Page