This topic is: not resolved
- This topic has 2 replies, 2 voices, and was last updated 5 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Quform PHP › CC recipients
Hi,
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,
Erik
Hi,
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();
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.