Date: 01/09/09 (PHP Community) Keywords: html, hosting, spam I'm experiencing massive frustration with the code I have for sending me form data. It usually works. When I test it, it always works. But now and again, it seems to just .. not work. The most recent incarnation, it sent the confirmation email (the third "mail" function), but not the first two. I have no clue what is going wrong, since it always works right when I test it.
$today=date("d M Y"); $datetext=" Date of submission: $today ";$contactinfo=" Contact information $projectinfo=" Travel information $abstract=" Purpose of travel: $purpose $objects=" BEP Objectives: $objectives ";$project=$heading.$datetext.$contactinfo.$projectinfo.$abstract.$objects; mail ("myemail@myplace.org","Submission: Travel & Training Application (lhilton)", "$project","From: $email\n"."MIME-Version: 1.0\n"."Content-type: text/html; charset=iso-8859-1"); (mail ("emaillist@myplace.org","Submission: Travel & Training Application", "$project","From: $email\n"."MIME-Version: 1.0\n"."Content-type: text/html; charset=iso-8859-1"); if (!empty($email)){ mail ("$email","Confirmation of submission for Travel & Training project", "$project","From: $email\n"."MIME-Version: 1.0\n"."Content-type: text/html; charset=iso-8859-1"); }
|