Home › Forums › Quform PHP › CC recipients
- This topic has 2 replies, 2 voices, and was last updated 7 years ago by
Ally.
- AuthorPosts
- August 3, 2019 at 4:58 am #29750
Erik
ParticipantHi,
I would like to send a form to 3 emails address. and 3 cc recipients.
When I try to do this it doesn’t work…
Is there a simple way to do that ?Thank’s in advance for your help !
Best regards,
ErikAugust 3, 2019 at 5:17 am #29751Erik
ParticipantHi,
It work’s for the 3 emails address and only for the first cc recipients address but not for the 2 others…
Here’s the code i add :$destinataire = array(‘person1@gmail.com’,’person2@gmail.com’,’person3@gmail.com’);
$destinataire_cc = array(‘person4@gmail.com’,’person5@gmail.com’,’person6@gmail.com’);define(‘_from_name’, $destinataire);
define(‘_from_cc’, $destinataire_cc);// Set the recipients
foreach ((array) $config[‘recipients’] as $recipient) {
$mailer->addAddress($recipient);
}// Set the recipients_cc
foreach ((array) $config[‘recipients_cc’] as $recipient_cc) {
$mailer->addCC($recipient_cc);
}// Set the message body HTML
ob_start();
include QUFORM_ROOT . $config[’emailBody’];
$mailer->msgHTML(ob_get_clean());$mailer->AltBody = ‘To view this email please use HTML compatible email software.’;
// Send the notification message
$mailer->send();August 6, 2019 at 12:00 pm #29762Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.
