What to do with the $my_email variable when using custom code to select a recipient (See more user questions)
Thank you for your question.
As per https://formtoemail.com/developersupport/select_form_recipient.php :
"When using this method you do not need to enter your email address(es) in
the script in the standard way. If you do, it will be safely ignored and the
email from the form will go to the selected recipient."
$my_email isn't blank to begin with, it looks like this:
$my_email = "delete these words and put the email address(es) only, in here
between the quotes";
If it has been messed about with, you can make it blank, like so:
$my_email = "";
If it has an email address in it, you can leave it as it is, as it says
above, it gets ignored.
Did you get the script to work before trying the option to select a
recipient? If not, I would try that first. It might be the case that you
can't send ANY PHP email from your setup. Have a look at this page on my
The "thank you" page just means the script has done its job and attempted to
send the email but there's no way the script can know if it actually got
sent by the server (that's just the way the PHP mail() function works).
Any questions, just let me know.
The world's easiest feedback script!
----- Original Message -----
Sent: Monday, February 07, 2011 4:12 PM
Subject: FormToEmail script
> Comments: I'm trying to get your form to work with the Select form
> recipient additional code. However firstly what do I put into Part 2? Do I
> leave it blank?
> The forms seems to work and I get to the Thank You page but the email does
> not arrive. Any ideas?