Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/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 send mail在Firefox中不起作用,但在Internet Explorer中不再起作用_Firefox_Windows Explorer_Php_Mime Types - Fatal编程技术网

PHP send mail在Firefox中不起作用,但在Internet Explorer中不再起作用

PHP send mail在Firefox中不起作用,但在Internet Explorer中不再起作用,firefox,windows-explorer,php,mime-types,Firefox,Windows Explorer,Php,Mime Types,下面的PHP发送邮件功能在Firefox中可以使用,并且曾经使用过,但至少在一个版本的Internet Explorer(10.0.5)上不再有效。我不确定这是什么时候发生的,但似乎与IE或我们的主机为4到5.2 PHP进行迁移准备时的某种形式的变化有关。请注意,即使在PHP5.4环境下,该函数在Firefox中也能正常工作 受影响的函数,如有任何帮助,将不胜感激(请注意,已删除样式项,以使代码更易于查看/调试): 可能更适合StackOverflow您删除了一些东西以使代码更易于查看/调试?尝

下面的PHP发送邮件功能在Firefox中可以使用,并且曾经使用过,但至少在一个版本的Internet Explorer(10.0.5)上不再有效。我不确定这是什么时候发生的,但似乎与IE或我们的主机为4到5.2 PHP进行迁移准备时的某种形式的变化有关。请注意,即使在PHP5.4环境下,该函数在Firefox中也能正常工作

受影响的函数,如有任何帮助,将不胜感激(请注意,已删除样式项,以使代码更易于查看/调试):


可能更适合StackOverflow您删除了一些东西以使代码更易于查看/调试?尝试删除更多;这本书读起来还是太多了,我不相信它是相关的。此外,您的帖子似乎在功能中期被截断:至少比
}
多了一篇
{
。另外,请使用
&
,和
编码
&
<?php
$comments=nl2br($comments);
$date=date("F d,Y h:i:s a");

$body=" <table width='650' align='left' cellspacing='0' cellpadding='0' style=' background-color:#FFFFFF; margin-bottom:10px;'>
<tr><td colspan='2' style='text-align:left; background-color:#FFFFFF; font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#000000; font-weight:bold; padding:5px;'>Quote Request:&nbsp;&nbsp;&nbsp;&nbsp;<span style='font-size:11px; color:#000000; font-weight:normal;'>Submitted &nbsp;".$date."&nbsp;</span><hr></td>
</tr>

<tr>
<td>Name:</td>
<td>".$_REQUEST['name']."</td>
</tr>
<tr>
<td>Company:</td>
<td>".$_REQUEST['company']."</td>
</tr>
<tr>
<td>Title:</td>
<td>".$_REQUEST['title']."</td>
</tr>
<tr>
<td>Phone #:</td>
<td>".$_REQUEST['phone']."</td>
</tr>
<tr>
<td>Email:</td>
<td>".$_REQUEST['email']."</td>
</tr>
<tr>
<td>Product or service type:</td>
<td>".$_REQUEST['product']."</td>
</tr>
<tr>
<td>Description of the product or service:</td>
<td>".$_REQUEST['description']."</td>
</tr>
<tr>
<td>Project type:</td>
<td>".$_REQUEST['product_type']."</td>
</tr>
<tr>
<td>Project overview:</td>
<td>".$_REQUEST['overview']."</td>
</tr>
<tr>
<td>Please summarize project's objectives:</td>
<td>".$_REQUEST['summarize']."</td>
</tr>
<tr>
<td># of users to test (if applicable):</td>
<td>".$_REQUEST['user_test']."</td>
</tr>
<tr>
<td>Supported computing platforms (if applicable):</td>
<td>".$_REQUEST['supported_computing']."</td>
</tr>
<tr>
<td>Project depth required:</td>
<td>".$_REQUEST['depth']."</td>
</tr>
<tr>
<td>Project's status:</td>
<td>".$_REQUEST['project_status']."</td>
</tr>
<tr>
<td>When would you like to begin?</td>
<td>".$_REQUEST['like_begin']."</td>
</tr>
<tr>
<td>When will you need the results?</td>
<td>".$_REQUEST['result']."</td>
</tr>
<tr>
<td>How should we contact you?</td>
<td>".$_REQUEST['Contact']."</td>
</tr>
</table>";

if($_POST['email']!="")
{

    $body =$body;
    $subject="Quote Request";
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    $headers .= "From: " .$_REQUEST['email']. "\r\n";
    $to="details@ourURL.com";
   // $to="";
    mail($to,$subject,$body,$headers);