CC recipients

Home Forums Quform PHP CC recipients

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Ally 2 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29750

    Erik
    Participant

    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

    #29751

    Erik
    Participant

    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();

    #29762

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy