1 回答

TA貢獻(xiàn)1827條經(jīng)驗(yàn) 獲得超4個(gè)贊
啊,我想通了。對(duì)于遇到類(lèi)似問(wèn)題的其他人,這是我發(fā)現(xiàn)的。
在MessageType.php文件中,缺少addReplyTo和setReplyTo函數(shù)。
以與setToRecipients,setCcRecipients和setBccRecipients函數(shù)相同的方式添加這些可以解決問(wèn)題:
public function addReplyTo($recipient)
{
return parent::addReplyTo(ensureIsMailbox($recipient));
}
public function setReplyTo($recipients)
{
$this->replyTo = [ ];
$recipients = ensureIsArray($recipients);
foreach ($recipients as $recipient) {
$this->addReplyTo($recipient);
}
return $this;
}
- 1 回答
- 0 關(guān)注
- 192 瀏覽
添加回答
舉報(bào)