Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php IIS7 SMTP不起作用。卡在“死信”文件夹中的邮件_Php_Email_Iis 7_Smtp_Windows Server 2008 - Fatal编程技术网

Php IIS7 SMTP不起作用。卡在“死信”文件夹中的邮件

Php IIS7 SMTP不起作用。卡在“死信”文件夹中的邮件,php,email,iis-7,smtp,windows-server-2008,Php,Email,Iis 7,Smtp,Windows Server 2008,我正在尝试在我的网站上实现邮件验证。我已经阅读了microsoft论坛上的指南,在步骤的最后,他们告诉我打开“cmd”并使用此语法 appcmd set config /commit:WEBROOT /section:smtp /from: string /deliveryMethod:network /network.port: int /network.defaultCredentials:True|False /network.host:string /network.userName:s

我正在尝试在我的网站上实现邮件验证。我已经阅读了microsoft论坛上的指南,在步骤的最后,他们告诉我打开“cmd”并使用此语法

appcmd set config /commit:WEBROOT /section:smtp /from: string /deliveryMethod:network /network.port: int /network.defaultCredentials:True|False /network.host:string /network.userName:string /network.password:string
这使我在/deliveryMethod:netword方面出错,但我忽略了它,因为我不知道该做什么

因此,我尝试了一种通过创建一个带有

源电子邮件 目的地 主题 正文

然后,我将文件粘贴到文件夹C:\inetpub\mailroot\pickup中,但之后,邮件会卡在文件夹C:\inetpub\mailroot\BadMail中

以下是php:

    $to = $fet2['mail'];
$subject = "Verifica Accoutn BoBBa Italia";
$txt = "<html>
<head>
<title>Verifica Account</title>
</head>
<body>
<p>Ciao ".$fet2['username']."</p>
<p>Questa è un messaggio automatico del sistema. Per verificare il tuo account è semplicissimo, ti basta cliccare sul link qui sotto! .</p>
<p>Verifica il tuo account!</p>
<table>
<tr>
<th>Link: clicca <a href='http://beta.bobbaitalia.it/verifico.php?token=".$token."'>QUI</a></th>
</tr>
<tr>
<td>http://beta.bobbaitalia.it/verifico.php?token=".$token."</td>
</tr>
</table>
<p>Grazie per aver scelto BoBBa Hotel Italia.</p>
<p>Non rispondere a questa email, è inattiva! </p>
<p><a href='http://beta.bobbaitalia.it/'>BoBBa Italia</a></p>
</body>
</html>";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: no reply <no-reply@bobbaitalia.it>";

$email=mail($to,$subject,$txt,$headers);

提前感谢所有愿意帮忙的人

这让我在/deliveryMethod:netword上犯了一个错误…错误是什么?我设法解决了这个问题,但我遇到了另一个问题。php代码中的邮件函数不起作用,我没有收到任何错误或警告,它就是不起作用。如果我尝试手动创建一个txt来尝试系统,它会发送电子邮件。。