两个收件人phpmailer函数的单独响应

时间:2016-09-03 16:13:54

标签: php email gmail phpmailer

我想在phpmailer功能

中为两个不同的收件人发送单独的响应
if($mail->addAddress($email, $name)){
    $mail->Body = "Thanks for your response. our representative contact you soon....";
}

if($mail->addAddress('xxxxxxxxx@gmail.com', 'xxxx')){
    $mail->Body = $message;
}

1 个答案:

答案 0 :(得分:0)

This link may be help you

你要为admin和client创建单独的实例,就像Jon Striling所说的那样