douou8954 2016-09-29 12:17
浏览 48

如何在使用Debian的PHP应用程序中使用Sendmail

I have a PHP application with a "send e-mail" function in it. It looks a little like this (hidding personal information):

 //SEND EMAIL
$destination = $destination;
$subject = "Issue - " . {issue_number};
$body = "Mr(s). Issuer <br/><br/>

rest of the message";

$header = 'MIME=Version: 1.0' . "
";
$header .= 'Content-type: text/html; charset=iso8859-1' . "
";
$header .= "To: <$destination" . "
";
$header .= 'From: Issues Central <issuescentral@myisp.com>' . "
";

mail($destination,$subject,$body,$header);

My PHP.ini file (/etc/php5/apache2/php.ini) is set like that:

For Unix only. You may supply arguments as well (default: "sendmail -t -I"). http://php.net/sendmail-path sendmail_path = /usr/sbin/sendmail -t -I

I was looking for the "sendmail" configurations file, and I kind of discovered that it's an alias to "exim4". And I'm kind of lost... Should I configure exim4 files? Which one? And how should I configure it?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
    • ¥15 ETLCloud 处理json多层级问题
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭
    • ¥15 2020长安杯与连接网探
    • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么