Dynamic multiple emails with dynmic individual content

Send dynamic emails with individual content to multiple recipients.

Overview

The issue arises when needing to send personalized emails, each containing unique links, to a list of recipients from a form submission.
Use a Custom Code action with Joomla's mailer methods to loop through the recipient array and generate individual emails with custom content.

Answered
se seagul 25 Sep, 2015
Hello,

my business case:

I have an online test for companies.
A manager fills in a form to sign up for the test.
She provides email-addresses of her employees (i.e. 5 addresses).
The manager gets an confirmation email (works great)
The 5 employees should get an email with a link to the test. The link contains a code (random value, 8 digits). When they click on their own individual link (i.e. http://www.mydomain.com/index.php?option=com_chronoforms5&view=form&Itemid=191&formkey=ai354ve1)
The formkey is saved in the database.
How can I create these 5 different emails with the individual links?
Can I do this with dynamic emails?

Everything else works great!!!

Thanks,
Sigrid
se seagul 25 Sep, 2015
Here is my array:
I would need to loop through [email] and send the emails with the link and formkey.

Array
(
    [option] => com_chronoforms5
    [view] => form
    [Itemid] => 191
    [chronoform] => unternehmen_adv
    [event] => submit
    [quickcheck] => mzu
    [anrede] => Herr
    [name] => Max Müller
    [email_mang] => manager@domain.com
    [telefon] => 023465
    [unternehmen] => Test GmbH
    [email] => Array
        (
            [1] => Array
                (
                    [ma_email] => user1@domain.com
                    [cf_id] => 
                    [un_id] => 23
                    [quickcheck] => mzu
                    [formkey] => r0cw4c9vum
                    [manager] => Herr Max Müller
                    [enddatum_format] => 09.10.2015
                )

            [2] => Array
                (
                    [ma_email] => user2@domain.com
                    [cf_id] => 
                    [un_id] => 23
                    [quickcheck] => mzu
                    [formkey] => kxlczulh3i
                    [manager] => Herr Max Müller
                    [enddatum_format] => 09.10.2015
                )

            [cf_id] => 52
        )

    [start_check] => Quick-Check
    [qc_name] => Mitarbeiterzufriedenheit
    [enddatum_format] => 09.10.2015
    [cf_id] => 23
    [email_data] => <tr><td colspan="2">user1@domain.com</td></tr><tr><td colspan="2">user2@domain.com</td></tr>
    [anrede_text] => <p>Sehr geehrter Herr Max Müller,</p>
)


But is it possible to dynamically change the content of the emails?
Gr GreyHead 25 Sep, 2015
Answer
1 Likes
Hi Sigrid,

I would write it all in a Custom Code action using the Joomla! mailer methods, that way you have full control.

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