Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 phpmailer v5.1 时出现有线异常
未捕获的异常“phpmailerException”和消息“您必须提供至少一个收件人电子邮件地址。
我检查了那里是否有正确的电子邮件
$oMail->AddReplyTo = FROM; $oMail->AddAddress = "testmail@web.de"; $oMail->SetFrom = FROM;
但仍然是同样的例外。任何想法可能是什么问题?
AddAddress是一种方法,而不是一种属性。所以,它应该像
AddAddress
$oMail->AddAddress("testmail@web.de");
这适用于您尝试应用的所有三个设置。