PDA

View Full Version : Need help posting form results to two emails



jmhresources
09-29-2009, 03:36 PM
I have a form that I need the results sent to to separate emails. I tried this:

<form action="https://www.bluehost.com/bluemail" form name="formcheck" onsubmit="return formCheck(this);" enctype="application/x-www-form-urlencoded" method="POST">

<input type="hidden" name="sendtoemail" value="charity1@supportdelnor.org">

<input type="hidden" name="sendtoemail" value="charity3@supportdelnor.org">

<input type=hidden name="subject" value="Charity Ball Ticket Order">


but it only sends to the first email.

Thanks for your help

felgall
09-29-2009, 04:02 PM
Instead of:

<input type="hidden" name="sendtoemail" value="charity1@supportdelnor.org">
<input type="hidden" name="sendtoemail" value="charity3@supportdelnor.org">

Use:

<input type="hidden" name="sendtoemail" value="charity1@supportdelnor.org;charity3@supportdelnor. org">

OR:

<input type="hidden" name="sendtoemail" value="charity1@supportdelnor.org,charity3@supportdelnor. org">

Hopefully one of those will work for you.

jmhresources
09-29-2009, 04:21 PM
Thanks, I tried with both a comma and semicolon and I get this error message:


charity1@supportdelnor.org;charity3@supportdelnor. org does not appear to be a valid email address

Could not get email address, or email address not valid.

felgall
09-29-2009, 08:14 PM
Sounds like that particular form2mail script only allows for one TO address per email.