English 中文(简体)
为什么邮件不能运行
原标题:why the mail function not working
  • 时间:2011-11-24 12:23:55
  •  标签:
  • php

Why the mail function not sending mail to me ,Could any one please help me ? Here i have wrote script to mail sending. Is there any other settings to send mail. But the mail function printing always "Success" , but the mail not received to me.

$Msg = "Your Suggestion is saved successfully. Please wait for admin approval";
        $subject="New Suggestion Posted - Waiting for approval";

        //$email_id =  [email protected] ;
        $email_id =  [email protected] ;
        $mail_msg="Hello Admin,<br><br>New Suggestion Posted. Waiting for approval.<br><br>
         Suggestion : ".$frmdata[ description ]."<br><br> Click here for <a href= http://www.tatanykshipping.com/index.php >login</a><br><br> Thanks,<br>The TATA NYK Team";  

        $headers  =  MIME-Version: 1.0  . "
";
        $headers .=  Content-type: text/html; charset=iso-8859-1  . "
";
        $headers .= "From: Tata NYK <".$_SESSION[ EMAIL_ID ].">
"; 
        $headers .= "Organization: Tata NYK
";
        echo  <br>sending mail to =  ,$email_id; 
        if(mail($email_id,$subject,$mail_msg,$headers))
          echo  <br>Successs ;
        else 
          echo  <br>Fail ; 

预示着很多事。

最佳回答

如果您的PHP应用程序在Lino上运行,并期望从该系统寄出邮件,你需要运输。 我使用发送邮件,但还可以使用其他开放源运输。 你可能还必须安装电子邮件客户,但我不知道邮电公司如何与邮寄邮件互动。 我的申请像电子邮件客户一样,需要安装电子邮件客户。

You also need to make sure that the email recipient will accept unsolicited port 25 traffic. Because of spam-ware, our firewall won t accept unsolicited port 25 traffic, so I have doctored up sendmail to log into our email server as a legitimate email account.

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签