#48554 [NEW]: php mail function connectivity problem
| From: | lakshmi at nace dot co dot in | Date: | Mon, 15 Jun 2009 09:52:12 +0000 |
| Subject: | #48554 [NEW]: php mail function connectivity problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-138298@lists.php.net to get a copy of this message | ||
From: lakshmi at nace dot co dot in
Operating system: Iinux
PHP version: 5.2.10RC2
PHP Bug Type: Mail related
Bug description: php mail function connectivity problem
Description:
------------
In LINUX (throught proxy connection) I cannot able to send the mail
function, mail function is working properly it will shows an message "msg
sent successfully" but it is not reaching the destination email id.
In LINUX (throught direct internet connection) mail function is also
working properly and also the mail is reaching the destination email id
perfectly.
how can i rectify this problem
Reproduce code:
---------------
---
From manual page: book.mail
---
<?php
$Name = "Da Duder"; //senders name
$email = "email@adress.com"; //senders e-mail adress
$recipient = "PersonWhoGetsIt@emailadress.com"; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional
headerfields
if(mail($recipient, $subject, $mail_body, $header)) //mail command :)
echo "mail sent";
else
echo "mail failed to sent
?>
Expected result:
----------------
this function executes in direct internet connection, but it has to work
when i am using proxy connection too.
Actual result:
--------------
it has to display the output
mail sent
and it has to reach to the destination(receiptent) email id
--
Edit bug report at http://bugs.php.net/?id=48554&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48554&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48554&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48554&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48554&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48554&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48554&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48554&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48554&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48554&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48554&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48554&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48554&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48554&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48554&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48554&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48554&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48554&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48554&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48554&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48554&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48554&r=mysqlcfg