Email not sent

How to use dynamic email addresses and form fields in ChronoForms v6 email notifications.

Overview

The issue occurs when upgrading from CF v4 to v6, as the syntax for referencing form data has changed.
Use the syntax {data:field_name} in both the email recipient fields and the email body to correctly pull dynamic values.

Answered
ChronoForms v6
ef eftie 24 Apr, 2017
My 1st issue in many years of using Chronoforms what I can not solve with forum posts or google, maybe because of the new V6.

I am upgrading from V4 to V6 and I want to send an email, to a dynamic address.

The field_name = emailadres, but when I put that in the CC field I get this in the debugger:
[cc] => Array
(
[0] => emailadres
)
Instead of 'emailadres' I expected the filled in email address from the form.
Question: How do I use dynamic email address in the email instance?

Also the filled in fields from the form are not getting into the mailbody:

<td><strong>Adres contactpersoon</strong></td>
<td>{adres_contactpersoon}</td>

where 'adres_contactpersoon' is the field name.
Question: How do I get the fields from the formfields into the emailbody?

Regards,
Eftie
Max_admin Max_admin 24 Apr, 2017
Answer
1 Likes
Hi Eftie,

In order to get a field value any where in v6 you should use this syntax: {data:field_name}

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ef eftie 24 Apr, 2017
It works now! Thank you.

Eftie
This topic is locked and no more replies can be posted.