I'm trying to create a relatively straightforward form with name, e-mail and telephone number fields.
I'd like to use a "dynamic to" box so the user receives an e-mail (with a link to download a file). I'd also like to receive an e-mail with the user's details.
...this should be relatively easy I presume, but I can't get it to work (I've never tried it before).
At present, whatever I write in the form, I end up with a "You must provide at least one recipient e-mail address" error message after submit. The tool tip for dynamic to says "the wizard will let you pick one of the fields you created in step 1", but when I used the wizard it didn't seem to do this (as a result, the dynamic to in the e-mail isn't linked to the e-mail field, which I suppose is crucial, but I can't see how to rectify that).
Perhaps related is when I set up an e-mail, I add the boxes and click "apply" and make sure they're enabled, then click the big Joomla save icon, but when I go back to the "setup e-mails" tab, the e-mail I just created has disappeared. Is that normal?
What am I doing wrong?
I'd like to use a "dynamic to" box so the user receives an e-mail (with a link to download a file). I'd also like to receive an e-mail with the user's details.
...this should be relatively easy I presume, but I can't get it to work (I've never tried it before).
At present, whatever I write in the form, I end up with a "You must provide at least one recipient e-mail address" error message after submit. The tool tip for dynamic to says "the wizard will let you pick one of the fields you created in step 1", but when I used the wizard it didn't seem to do this (as a result, the dynamic to in the e-mail isn't linked to the e-mail field, which I suppose is crucial, but I can't see how to rectify that).
Perhaps related is when I set up an e-mail, I add the boxes and click "apply" and make sure they're enabled, then click the big Joomla save icon, but when I go back to the "setup e-mails" tab, the e-mail I just created has disappeared. Is that normal?
What am I doing wrong?
Hi thiskey,
You need to enter an input name (with no quotes and no brackets) into the Dynamic To box. There's a pop up in the Wizard that helps with htis though I rarely use it.
No that isn't normal. Where are you creating the Email setups - in the Wizard or the Form Editor?
Bob
You need to enter an input name (with no quotes and no brackets) into the Dynamic To box. There's a pop up in the Wizard that helps with htis though I rarely use it.
Perhaps related is when I set up an e-mail, I add the boxes and click "apply" and make sure they're enabled, then click the big Joomla save icon, but when I go back to the "setup e-mails" tab, the e-mail I just created has disappeared. Is that normal?
No that isn't normal. Where are you creating the Email setups - in the Wizard or the Form Editor?
Bob
GreyHead,
Thanks so much - I hadn't entered values in the boxes on the e-mail setup form. Silly mistake.
It's working now, though I'm hoping to add another element - a password/voucher box. You might remember I asked a question about this a few weeks ago, and you kindly supplied the following code:
Adding this to either the "on submit before sending e-mail" or the "on submit after sending e-mail" box produces the same result - an e-mail is sent either way.
Do you know if it can be set up so the e-mail is only sent if the voucher code is correct?
The form is at http://www.townsandhouses.com/fans
Thanks again.
Thanks so much - I hadn't entered values in the boxes on the e-mail setup form. Silly mistake.
It's working now, though I'm hoping to add another element - a password/voucher box. You might remember I asked a question about this a few weeks ago, and you kindly supplied the following code:
<?php
$code = JRequest::getString('voucher', '', 'post');
if ( $code == 'vouchercode' ) {
echo "Correct voucher code. You should receive an e-mail shortly. If you do not, please contact the band.</a>";
} else {
echo "Sorry - not the right voucher code. <a href='http://www.townsandhouses.com/fans'>Click here to go back.</a>";
}
?>
Adding this to either the "on submit before sending e-mail" or the "on submit after sending e-mail" box produces the same result - an e-mail is sent either way.
Do you know if it can be set up so the e-mail is only sent if the voucher code is correct?
The form is at http://www.townsandhouses.com/fans
Thanks again.
This topic is locked and no more replies can be posted.