email 1 has email to reply to as `[email protected]`
email 2 has email to reply to as `[email protected]`
私の現在のコード:
if($this->teacherEmail && $this->teacher_reply_enable)
$this->mail->AddReplyTo($this->teacherEmail, $this->schoolTitle);
else
$this->mail->AddReplyTo($this->schoolEmail, $this->schoolTitle);
$this->mail->Subject = $this->subject;
$this->mail->msgHTML($this->getMessage());
$this->mail->AltBody = strip_tags($this->message);
$this->mail->addAddress($this->to, $this->to_name);
foreach($this->attachments as $item){
$email_attachment = DOC_ROOT.$item->path.$item->orig;
$email_attachment_title = $item->name;
$this->mail->addAttachment($email_attachment,$email_attachment_title);
}
if (!$this->mail->send()) {
return false;
} else {
return true;
}
私がいる問題はreply-to:
がある電子メール1が正常に送信されたことです[email protected]の場合、メール2が送信され、reply-to:
は[email protected]
と[email protected]
の両方です。
私はそれはそれはclearReplyTosと呼ばれる方法がある文書によると、2 reply-to:
さん
格納されている場合に問題がありますか? – DestinatioN
リストに送信する場合は、PHPMailerで提供されている[メーリングリストの例](https://github.com/PHPMailer/PHPMailer/blob/master/examples/mailing_list.phps)をご覧ください。 – Synchro