Forums

Email not sent when absolute value ?

dfoxch 01 Apr, 2017
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 ?
Max_admin 01 Apr, 2017
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dfoxch 01 Apr, 2017

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.
Max_admin 01 Apr, 2017
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dfoxch 01 Apr, 2017
1 Likes
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.
Max_admin 01 Apr, 2017
Answer
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.