Email recipients on event email, seems not to work when using an absolute value like info@email.com, it works perfectly when using a variable value like {data:email}, is there a trick ?
Forums
Email not sent when absolute value ?
Hi dfoxch,
I have tested this here and its working as expected, using a static address or a variable or both works, please drag a "Debugger" action after the Email action and check the output or post it here.
Best regards,
Max
I have tested this here and its working as expected, using a static address or a variable or both works, please drag a "Debugger" action after the Email action and check the output or post it here.
Best regards,
Max
Array
(
[option] => com_chronoforms6
[chronoform] => contact-comite
[event] => submit
[nom] => Sarah
[email] => demo@demo.com
[sujet] => TEST messagerie et formulaires 6
[message] => TEST messagerie et formulaires 6
[envoi] =>
)
Array
(
[save_data6] => Array
(
[data] => Array
(
[created] => 2017-04-01 12:56:53
[user_id] => 0
[nom] => Sarah
[email] => demo@demo.com
[sujet] => TEST messagerie et formulaires 6
[message] => TEST messagerie et formulaires 6
)
[_success] => Data saved successfully
[log] => Array
(
[0] => INSERT INTO `s4bk9_chronoengine_chronoforms_data_contact-comité` (`created`, `user_id`, `nom`, `email`, `sujet`, `message`) values ('2017-04-01 12:56:53', '0', 'Sarah', 'demo@demo.com', 'TEST messagerie et formulaires 6', 'TEST messagerie et formulaires 6');
)
[var] => Array
(
[created] => 2017-04-01 12:56:53
[user_id] => 0
[nom] => Sarah
[email] => demo@demo.com
[sujet] => TEST messagerie et formulaires 6
[message] => TEST messagerie et formulaires 6
[aid] => 7
)
)
[email2] => Array
(
[recipients] => Array
(
[0] => demo@demo.com
)
[subject] => TEST messagerie et formulaires 6
[body] => This is the list of data provided by the user:<br>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="ui table">
<tr><td width="30%" valign="top" align="right">Prénom Nom</td><td width="70%" valign="top" align="left"><strong>Sarah</strong></td></tr>
<tr><td width="30%" valign="top" align="right">Email</td><td width="70%" valign="top" align="left"><strong>demo@demo.com</strong></td></tr>
<tr><td width="30%" valign="top" align="right">Sujet</td><td width="70%" valign="top" align="left"><strong>TEST messagerie et formulaires 6</strong></td></tr>
<tr><td width="30%" valign="top" align="right">Message</td><td width="70%" valign="top" align="left"><strong>TEST messagerie et formulaires 6</strong></td></tr>
<tr><td width="30%" valign="top" align="right"></td><td width="70%" valign="top" align="left"><strong></strong></td></tr>
</table>
TEST
[from_name] => Art
[from_email] => demo@demo.com
[reply_name] => Sarah
[reply_email] => demo@demo.com
[result] => the Mail could not be sent.
[var] =>
)
)
Of course email address and names are modifed. Forms has a data save action, and if success sends two emails, one to concerned, one to writer then displays an ok message. First email (email 2) is never sent, while second (email7) is sent.
The debug reports the mail as failed to be sent, although the settings look correct, what if you use the {data:field} syntax and provide the SAME address, and keep all the email settings the same, the mail is reported as sent or not ?
Best regards,
Max
Best regards,
Max
I found a solution:
fields [reply email] and [reply name], were filled with variable data like {data:email}{data:name}. When I erased these values it worked fine.
I can use again an absolute value into field [Email recipients] and it sends the email correctly.
fields [reply email] and [reply name], were filled with variable data like {data:email}{data:name}. When I erased these values it worked fine.
I can use again an absolute value into field [Email recipients] and it sends the email correctly.
Hi dfoxch,
Great, I have fixed this and it should support the variables in the from and reply fields by the next update.
Best regards,
Max
Great, I have fixed this and it should support the variables in the from and reply fields by the next update.
Best regards,
Max
This topic is locked and no more replies can be posted.