问题描述
An error occurred
An error occurred during execution; please try again later.
Additional information:
Laminas\Mail\Transport\Exception\RuntimeException
File:
/home/hosting/sander/WWW/vendor/laminas/laminas-mail/src/Transport/Sendmail.PHP:306
Message:
Unable to send mail: UnkNown error
Stack trace:
#0 [internal function]: Laminas\Mail\Transport\Sendmail->mailHandler('Name of recipie...','TestSubject','This is the tex...','Date: Sat,26 S...',' -f'Freeaqingme...')
这是我要执行的代码:
$mail = new Mail\Message();
$mail->setBody('This is the text of the email.');
$mail->setFrom('info@verzeilberg.nl',"Sender's name");
$mail->addTo('sander@verzeilberg.nl','Name of recipient');
$mail->setSubject('TestSubject');
$transport = new Mail\Transport\Sendmail();
$transport->send($mail);
有人遇到此错误吗?就像服务器配置吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)