当我从phpmailer发送邮件时,我想回复我收到的回复电子邮件地址,如[email protected]。但我想将其更改为[email protected]。 于是我说:phpmailer更改邮件发件人
$mail->AddReplyTo('[email protected]', 'First Last');
但在电子邮件给我的反应都得到(办公及管理),我想只有[email protected] 我把它改为:
$mail->Sender='[email protected]';
$mail->SetFrom('[email protected]','First Last');
我得到
SMTP Error: Data not accepted.
SMTP server error: 5.7.1 Forged sender address:
我PHPMailer的版本是:5.2.6
你不使用任何特别的原因[最新的PHPMailer(https://开头github.com/PHPMailer/PHPMailer)? – Synchro