我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

调试Laravel Mail :: send()

On my shared host, PHP mail function works fine, but I can't send email using Laravel Mail::send().

when config/mail.php driver field is set to smtp, Mail::send() returns false when the field is set to mail the method returns true but the email isn't sent.

How can I debug this?

I don't know why, but when requests start with WWW, the Laravel Mail::send() works but with requests without WWW it fails so I just forced WWW using .htacess 301 redirects.

近期文章

  • 让wampserver工作?
  • 为什么cookie值错了?
  • 这是否打破了封闭原则
  • Cakephp自定义验证输入
  • 如何检查套接字是否存活
  • JOIN表MySQL没有加入PHP
  • 交替的行颜色我错过了什么
  • https连接传递另一台服务器
  • Chrome扩展程序,通过php将大变量传递到其他Windows
  • 致命错误:允许内存耗尽(wordpress +插件)CSV导入
  • 当一个数组中的字符串与第二个数组中的字符串不同时获取字符串值
  • 将条形进度条引入上传文件
  • JQuery和Bootstrap 3简单易用
  • OOP PHP类可变范围
  • Drupal将一个文件夹迁移到另一个文件夹
  • 页面不重定向
  • 如何比较PHP中的XML文件中的两个字符串?
  • 使用单个提交按钮(JSON)提交两个表单
  • 使用cURL进行Paypal快速结账运费计算
  • 访问SimpleXML节点的XML属性

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华