drvpvmz16241016 2015-12-15 18:22
浏览 23

Laravel SMTP邮件不发送

I have two environments set up, let's call one Dev and one QA. Both are remote to my local machine with a laravel we app running. Both are pointing to an SMTP server to send email. One (dev) works and one (QA) doesn't, but neither throw an error message.

Here is my mail.php configuration (names changed for genericness):

return array(

'driver' => 'smtp',
'host' => 'cereal.andmilk.com',
'port' => 25,
'from' => array('address' => 'order@cereal.com', 'name' => 'Cereal is Good'),
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,

);

At first I thought that sendmail could be the problem, as it doesn't exist on either QA or Dev, but that doesn't really help as Dev has no trouble sending emails. I'm guessing that it only has to exist on the actual smtp server, in this case 'cereal.andmilk.com'.

One potential solution I found was to whitelist/open the smtp server URL and port. The methods I discovered to do that seemed to require root access, which I don't currently have on QA. I am continuing to attempt investigating that line of thought, but in the meantime, is there any other troubleshooting I can do on this issue?

Laravel is version 4.2.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 数学建模,尽量用matlab回答,论文格式
    • ¥15 昨天挂载了一下u盘,然后拔了
    • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
    • ¥20 易康econgnition精度验证
    • ¥15 msix packaging tool打包问题
    • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能