hey guys,
I have a problem. I need to give my school a presentation about sending a quote offer to multiple selected email adresses.
I found this but didn't work for me:http://www.chronoengine.com/faqs/52-cfv4/cfv4-emails/2603-how-can-i-send-an-email-to-different-addresses.html
I did this:
1. I made a checkbox group
field name and id = recipients
options is
Company 1 = myemail@email.com
Company 2 = myemail@email.nl
2. I made a custom code in page3(which is my last formpage(multi form page) before html (render form) which has submit event: submit in it with the following code:
3. in between custom code and html render form I have email event which i have already setup email from to etc and in advanced tab in dynamic to I have put in this: email_to_use
Just like in the link tutorial I did everything as they said, i think but it still doesn't work.
Another question is what is the best way to show a list of companies(company name, little description, user rating and an image) instead of the 2 emails to select upon. So depending on which company you select on page 3 it will send it's quote offer to them. Can I use yootheme's zoo module to show the company list in the chronoform's form?
I have a problem. I need to give my school a presentation about sending a quote offer to multiple selected email adresses.
I found this but didn't work for me:http://www.chronoengine.com/faqs/52-cfv4/cfv4-emails/2603-how-can-i-send-an-email-to-different-addresses.html
I did this:
1. I made a checkbox group
field name and id = recipients
options is
Company 1 = myemail@email.com
Company 2 = myemail@email.nl
2. I made a custom code in page3(which is my last formpage(multi form page) before html (render form) which has submit event: submit in it with the following code:
<?php
// set a default recipient
$recipient = 'recipient@recipient.nl';
if ( isset($form->data['recipients']) && $form->data['recipients'] ) {
$recipient = $form->data['recipients'];
}
$emails = array (
'Company 1' => 'myemail@email.com',
'Company 2' => 'myemail@email.nl');
$form->data['email_to_use'] = $emails[$recipient];
?>
3. in between custom code and html render form I have email event which i have already setup email from to etc and in advanced tab in dynamic to I have put in this: email_to_use
Just like in the link tutorial I did everything as they said, i think but it still doesn't work.
Another question is what is the best way to show a list of companies(company name, little description, user rating and an image) instead of the 2 emails to select upon. So depending on which company you select on page 3 it will send it's quote offer to them. Can I use yootheme's zoo module to show the company list in the chronoform's form?