PHPMailer AddAddress()

前端 未结 5 2104
日久生厌
日久生厌 2020-11-27 16:26

I don\'t know how the data should be formatted for AddAddress PHPMailer function; I need the email to be sent to multiple recipients so I tried

$to = \"me@d         


        
5条回答
  •  旧时难觅i
    2020-11-27 17:05

    Some great answers above, using that info here is what I did today to solve the same issue:

    $to_array = explode(',', $to);
    foreach($to_array as $address)
    {
        $mail->addAddress($address, 'Web Enquiry');
    }
    

提交回复
热议问题