我正在使用 Laravel Mail 发送邮件,但它显示 500 错误
本地主机页面不起作用
localhost 当前无法处理此请求。
我正在使用此代码
\Mail::send('suppliers.mail',['name' => 'test'],function ($mail) {
$mail->subject('Supplier Details');
$mail->from('dump.test@gmail.com');
$mail->to('dump.ajit@gmail.com');
});
我已经在 ubuntu 中设置了 smtp 服务器并在 laravel 的 config 文件夹中配置了 mail.php,我可以使用核心 php 代码发送邮件