English 中文(简体)
php 表格不通过电子邮件发送信息,大约30%的时间
原标题:php form not sending info via email about 30% of time

我拿到这个信息,在访问者填写表格时,有30%的时间没有内容错误,不能孤立问题。 寄送电子邮件的网址如下:匿名。 任何想法?

我试图在论坛上找到答案,但迄今没有结果。 感谢你们的帮助!

<?php

    $fromAddress =  [email protected] ;
    $subject =  Resources - White Paper Download -  .$_POST[ WhitePaper ];

    $message .= "
";

    foreach($_POST as $name => $value) {
    $message .= $name .  :   . $value . "
";
    }

    $to       =  [email protected] ;
    $headers  =  MIME-Version: 1.0  . "
";
    $headers .=  Content-type: text/plain; charset=UTF-8  . "
";
    $headers .=  From:   . $fromAddress . "
" .
         Reply-To:   . $fromAddress . "
" .
         X-Mailer: PHP/  . phpversion(). "
";
    $headers .=  Cc: [email protected], <[email protected]>  . "
";
    mail($to, $subject, $message, $headers);
    echo "mail sent";
?>
问题回答

如果你无法发现任何前后矛盾之处(某些联系总是失败,还是有些时候?) 那么,我可以说,你在守则中添加了与你一样多的伐木,看看是否有一种模式。

建立一个记录文档,每次打电话给你的邮寄代码时,都要写给它的电子邮件细节,以及服务器的答复;然后检查,看看你看看错是否能够复制问题。

我能看到,这可能造成的唯一事情是,如果美元是空的——我假定,你总是以同样的方式来打字,你从来不把它与所设定的——GET参数联系起来?





相关问题
Angle brackets in php

I want to store angle brackets in a string in PHP because i want to eventually use mail() to send an HTML email out. The following is the code that doesn t seem to work. while(...) { $msg .= "<...

authlogic auto_register feature using my options

I have auto registration working with authlogic using gaizka s version of authlogic_openid which I found on Github since pelle s original addition of the feature seemed to cause issues. http://...

Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

How to track an email in Java?

How I can track an email? I m using java on the server side for sending emails. I want to track whether it is delivered , opened, etc... How I can do that ?

Web Link in a mail is not rendering as link in yahoo

string from = "abc@gmail.com"; string to = "xyz@gmail.com,xyz@yahoo.co.in"; string password="abcxyz"; MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add(to); mail.From = new ...

SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

How to create an email mailing list

Im creating a coming soon page for a website im developing, and im adding an option for the user to enter their email address so we can email them when the site is up. How do I do this?

CCNet email does not include MSBuild results

We re using CCNet 1.4.4.83 but when an MSBuild task fails, we don t get the MSBuild results (i.e. missing file or whatever reason the compile failed) in the email notification. I do see the build ...

热门标签