English 中文(简体)
标题中未找到的收受地址
原标题:No recipient addresses found in header [closed]
  • 时间:2011-01-20 06:32:31
  •  标签:
  • php
  • email

我在寄送邮局邮件时,会发现这一错误。

Error Is:- 头盔中未发现任何接收地址

Please help me out

这里是法典

/军法典从这里开始。

        $to  = navruk@gmail.com;
        $subject  = $_POST[ txtsub ];
        $messgae  = $_POST[ txtmessage ];
        $signature = $_POST[ txtsignature ];
        $redirect = "thanks.php";
        $error    = "error.php";

            $body ="<table width= 700  align= center  cellpadding= 0  cellspacing= 0  border= 0 >
              <tr>
                <td valign= top >
                      $messgae <br>
                </td>
              </tr>
              <tr>
                <td valign= top >
                      $signature <br>
                </td>  
              </tr>
            </table>";

            $from      = "Aakrutisolutions<info@aakrutisolutions.com>";
            $headers  =  "From: $from
";
            $headers .=  MIME-Version: 1.0  . "
";
            $headers .= "Content-type: text/html;charset=iso-8859-1
"; 
            $headers .= "Content-Transfer-Encoding: 8bit
";
            $headers .= "X-Priority: 1
"; 
            $headers .= "X-MSMail-Priority: High
"; 
            $headers .= "X-Mailer: Just My Server
";
            $headers .= "".$body."
";

                    if(mail($to, $subject, $message, $headers))
                    {
                        ?>
                        <script language="javascript">
                         location.href= bulkmail.php?sts=mailsent ;
                        </script>
                        <?php
                    }
                    else
                    {
                        ?>
                        <script language="javascript">
                         location.href= bulkmail.php?sts=mailnotsent ;
                        </script>
                        <?php

                    }

//My code ends here

问题回答

阁下

$to  = navruk@gmail.com;

任务需要引证:

$to  = "navruk@gmail.com";

我可以理解评论中的精髓,从来不小,我认为,即便答案是显而易见的,也这样做是站不住脚的。 很容易找到信息:

$headers =  From: Navruk <navruk@gmail.com>  . "
" .
            To: Navruk1 <navruk@gmail.com>, Navruk2 <navruk@gmail.com>  . "
" .
            Cc: Navruk3 <navruk@gmail.com>  . "
" .
            Bcc: Navruk4 <navruk@gmail.com>  . "
" .
            Reply-To: noreply@example.com  . "
" .
            X-Mailer: PHP/  . phpversion();

mail(
       "navruk@gmail.com",
       "How to do basic mailing",
       "I can easily GOOGLE and find this LINK at the top http://php.net/manual/en/function.mail.php. Surprisingly, it is the PHP manual. If I CLICK this link I will find not only how to use the PHP command mail, but also a bunch of examples! This took me about 10 seconds to find.",
        $headers
      );

我建议你阅读这一信息,并尝试这一信息?





相关问题
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 ...

热门标签