bluemonkey
21-Jul-2006, 06:01 PM
For those of you hosted on an apache server running php5.x you may have discovered your forms disappearing down a black whole, even though the form mailer successfully process your form.
This is because PHP FormMail fails to send the "From" field in the header correctly. Basically, Apache sends the email as anonymous@public.mydomain.co.uk whereas it should read my.email@domain.co.uk
Firstly you may have to turn php safe_mode to off, though if your running php5 don't worry too much.
Secondly, find line 3111 (around there somewhere) and change
return (mail($s_to,$s_subject,$s_mesg,ExpandMailHeaders($a_headers))); to
return (mail($s_to,$s_subject,$s_mesg,ExpandMailHeaders($a_headers), "-fmy.email@domain.co.uk"));
This is only an issue if your server/email server is exceptionally "strict"?
[Sorry, this should have been titled: send correct "from" header]
This is because PHP FormMail fails to send the "From" field in the header correctly. Basically, Apache sends the email as anonymous@public.mydomain.co.uk whereas it should read my.email@domain.co.uk
Firstly you may have to turn php safe_mode to off, though if your running php5 don't worry too much.
Secondly, find line 3111 (around there somewhere) and change
return (mail($s_to,$s_subject,$s_mesg,ExpandMailHeaders($a_headers))); to
return (mail($s_to,$s_subject,$s_mesg,ExpandMailHeaders($a_headers), "-fmy.email@domain.co.uk"));
This is only an issue if your server/email server is exceptionally "strict"?
[Sorry, this should have been titled: send correct "from" header]