Developer Support »

Sending the autoresponse to a CC address  (See more user questions)

Hi .

Good to hear from you.

Doesn't the recipient of the cc email know what is in the autoresponse
email??

There isn't a facility in the script to do that, and I probably won't add
such a facility as I have never been asked for it before and on the surface
it sounds a bit odd to me.

I don't do custom work but as a courtesy to customers I can provide snippets
of code free of charge.

You can edit your script to do it. This is the line that sends the
autoresponse:

mail($_REQUEST['email'],$autoresponder_subject,$message,$headers);

Change it to this:

mail($email_addresses,$autoresponder_subject,$message,$headers);

Then make the $email_addresses variable with the required email addresses
and put the line above the mail() line, like so:

$email_addresses = "{$_REQUEST['email']},{$_REQUEST['email2']}";

mail($email_addresses,$autoresponder_subject,$message,$headers);

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Friday, February 25, 2011 8:00 AM
Subject: FormToEmail script


> Comments: Charles, Thanks for your help so far. I used your suggestion
> from: https://formtoemail.com/user-questions/question_206.php to add a cc
> address to receive the form as well as the form submitter. However, I
> would also like the cc address to get the ($autoresponder) automated
> response that the submitter receives.