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

时间:2016-09-29 12:17:31

标签: php debian sendmail exim4

我有一个带有"发送电子邮件的PHP应用程序"功能在其中。看起来有点像这样(隐藏个人信息):

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

rest of the message";

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

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

我的PHP.ini文件(/etc/php5/apache2/php.ini)设置如下:

仅适用于Unix。您也可以提供参数(默认值:&#34; sendmail -t -I&#34;)。 http://php.net/sendmail-path sendmail_path = / usr / sbin / sendmail -t -I

我一直在寻找&#34; sendmail&#34;配置文件,我发现它是&#34; exim4&#34;的别名。 而且我有点失落...... 我应该配置exim4文件吗?哪一个?我该如何配置呢?

0 个答案:

没有答案