timothyltaylor Posted January 10, 2007 Share Posted January 10, 2007 Anyone have experience sending an autoresponse via php?Right now, this doesn't send any autoresponse.Is the following part of the code correct:[code]mail($to, $subject, $body, $headers); mail($email, $autoresponder);[/code]Can you help me figure out how to correct this code please? Thanks so much, Timothy T.[code]// create autoresponse $autoresponder = " Dear CAP Student, Thanks for attending the CAP 3 class and filling out the evaluation. I appreciate your honest comments they will help us make the CAP experience better. The answer key for the CPAA practice exam can be downloaded at http://www.mysite.com/downloads.html Best of Luck with the CPAA exam. You will begin receiving our newsletter via e-mail. See you soon! <strong>Timothy Taylor</strong> 800-000-0000 [email protected] Home Office: address; $to = "[email protected]"; $subject = "Evaluation Results from $name"; $headers = "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $name <$email> \r\n"; $headers .= "Bcc: [email protected] \r\n"; $headers .= "Reply-to: [email protected] \r\n"; mail($to, $subject, $body, $headers); mail($email, $autoresponder);[/code] Link to comment https://forums.phpfreaks.com/topic/33652-php-autoresponder-within-original-document-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.