How send multiple mails from database??

ideagrup 17 Jun, 2015
Hello Bob and Max,

I need send multiple personal mails to the emails saves into database.

database -> id, name, mail (50 users) more less.

1, John, mail1@domain.com
2, Peter, peter@otherdomain.com
3, thomas, info@otherdomainmore.com
n, .....

Dou you have a sample for to send multile mails ???

Thanks
GreyHead 18 Jun, 2015
Hi ideagrup,

Do you want to send the same email to all 50 people? I think that the Email action will accept a comma separated list as an entry in the Dynamic To Email box. You build the list in a Custom Code action:
<?php
$form->data['email_list'] = 'mail1@domain.com,peter@domain2.com,john@domain3.net';
?>
Then add email_list in the Dynamic To box

Note that sending emails to many people increases the chance that they will be marked as spam.

Bob
ideagrup 18 Jun, 2015
Is the same mail always, but with {name} at beginning mail.
But if i use this option then i cant put a field for to difference mailis, like a mailing.
I would like to create a list a mails pending of sent and to make a loop for send one to one every X seconds.

Perfect would be,
selecting users (with filters and checkbox) Preselect.
Form email->
Send email to database users checkeds previously. one to one.

Exist something like these a sample or custom code php seems??

Than's Bob
GreyHead 19 Jun, 2015
Hi ideagrup,

In CFv5 you'd have to do this with Custom Code (or find a mailer extension that will handle it). My Email [GH] action for CFv4 did have an individual emails option but that would not handle the changed {name} for each email.

Bob
ideagrup 19 Jun, 2015
I would like to prove your action CFv4

can you send me a link to prove it??

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