Forums

How can I send an email to different addresses(multiple)?

janman 30 Sep, 2015
I have used this post to get my emails working
https://www.chronoengine.com/faqs/52-cfv4/cfv4-emails/2603-how-can-i-send-an-email-to-different-addresses.html
but i need to send it to multiple recipients, example on em1
<?php
$recipient = JRequest::getString('recipients', 'em1centurion_campus', 'post');
$emails = array (
  'em1' => 'demo@demo.co.za,demo2@demo.co.za,demo3@demo.co.za',
  'em2' => 'demo@demo.co.za',
  'em3' => 'demo@demo.com' );
$form->data['email_to_use'] = $emails[$recipient];
?>
janman 01 Oct, 2015
any update on my problem will be greatly appreciated
GreyHead 01 Oct, 2015
Hi janman,

If you get my Email [GH] action (from here) then it should handle an array or string like this in CFv4.

Bob
janman 01 Oct, 2015
getting this error when trying to install
Warning: File /usr/www/users/c1021liv/chefstraining/administrator/cache/ChronoForms v4 action email_gh.zip not uploaded for security reasons!
janman 01 Oct, 2015
uploaded the file via ftp working thanks?
This topic is locked and no more replies can be posted.