Jump to content

PHP Autoresponder within original document Help


timothyltaylor

Recommended Posts

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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.