简体   繁体   English

Laravel Mail :: send 500 Internal Server Error

[英]Laravel Mail::send 500 Internal Server Error

I'm getting a 500 internal server error when trying to use Mail::send() . 尝试使用Mail::send()时出现500个内部服务器错误。 Frustratingly this has only just started happening, it was working fine before. 令人沮丧的是,这只是刚刚开始发生,之前运行良好。 The really frustrating part about this is I'm just getting the white screen of death. 真正令人沮丧的是,我只是获得死亡的白屏。 I've turned on debugging in config/app.php and set the environment to LOCAL, but I get nothing. 我在config / app.php中打开了调试功能,并将环境设置为LOCAL,但是我什么也没得到。

I've checked cPanel errors but there's nothing in them, it's not generating an error at all. 我已经检查了cPanel错误,但是里面什么也没有,根本没有产生错误。 Error reporting is definitely on, I added a call to an undefined function at the top of index.php and it showed me Fatal error: Call to undefined function throw_error_now() in /home/fluidstu/tracker/public_html/index.php on line 8 as expected, so that's not the issue. 错误报告肯定已经打开,我在index.php的顶部添加了对未定义函数的调用,它向我显示了Fatal error: Call to undefined function throw_error_now() in /home/fluidstu/tracker/public_html/index.php on line 8符合预期,所以这不是问题。

How can I find out what is causing the issue if there's nothing in the logs (Laravel or cPanel) and I'm just getting a white screen of death when calling Mail::send ? 如果日志中没有任何内容(Laravel或cPanel),并且在调用Mail::send时出现白屏死机,我如何找出导致问题的原因?

I'd really appreciate some help on this as I'm about to throw my PC out the window. 我真的很感谢在此方面的一些帮助,因为我要把PC扔到窗外。

SMTP请求可能要花很长时间才能处理,您可以尝试提高time_limit,但这非常不安全。

set_time_out(0);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM