Forums

how to send mail with Dynamic to?

pierpari 24 Feb, 2014
Hi,
I need to send emails to many users loading data from a db and i try using Dynamic to but it don't work and i read into the forum that it don't work with array and i must use email action GH for this but i find just for V4.
I'm using Chronoforms V5

???
calculus00 24 Feb, 2014
Hello pierpari,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How to send an Email dynamically
P.S: I'm just an automated service😉
GreyHead 24 Feb, 2014
Hi pierpari,

Sorry, I don't know how to do this in CFv5 - Max may have a suggestion.

Bob
pierpari 24 Feb, 2014
I think to create a variable $destinations = "me@gmail.com, you@gmail.com,… etc" and put it into 'Dynamic to' box but it don't read variable😟
I have wrote '$destinations' into 'Dynamic to' box.
is it wrong?
Max_admin 11 Mar, 2014
Hi,

Please try to use a "custom code" box before the email action with this code:

<?php
$form->data["destinations"] = array("me@mail.com", "you@mail.com");

Then write "destinations" in the "Dynamic to" field in the email settings, check if this works ?

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.