扫码关注官方订阅号
公司现在每天生成一些报表,要晚上发人一些员工,因为服务器不支持ssl,重新编译nginx我也不是很懂,生产机弄坏了就完了,所以没法用phpmailer来发, 听说在linux弄个mail服务器,就能通过shell发邮件,求指点
我想做的是,每天晚上6点自动,把生成的文件通过mail的附件,发给email给其他人。
闭关修行中......
在机器B上做个接口,post过去用B机器发邮件。For the Mail functions to be available, PHP must have access to the sendmail binary on your system phpmailer也是用的系统函数sendmail 你机器上用不了phpmailer,估计sendmail也是用不了的。别指望用shell发邮件了。
For the Mail functions to be available, PHP must have access to the sendmail binary on your system
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
在机器B上做个接口,post过去用B机器发邮件。
For the Mail functions to be available, PHP must have access to the sendmail binary on your systemphpmailer也是用的系统函数sendmail
你机器上用不了phpmailer,估计sendmail也是用不了的。别指望用shell发邮件了。