douyi3760 2019-03-25 14:01
浏览 28

如何在使用Laravel的Mail外观时传播或保留电子邮件错误代码?

So, as is clear from the documentation, Laravel's Mail facade does not report any errors when using the Mail::send() method.

I would like to insert code somewhere to interact with the actual email functionality that Mail is calling (smtp in this case), but I don't know what the appropriate approach is.

Should I be trying to set up a Listener of some sort? Should I back up and then hack the smtp library (probably not)?

There has to be some way of getting error codes back when the email server responds to PHP but can't successfully send the email, but I've had no success finding useful guidance from online sources.

I'm hoping that somebody who knows the Laravel architecture better than I do can suggest where I should concentrate my efforts.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
    • ¥15 lammps拉伸应力应变曲线分析
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试,帮帮忙吧
    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建