#33193 [Opn->Bgs]: some addresses work, some don't
| From: | sniper@php.net | Date: | Tue, 31 May 2005 05:18:07 +0000 |
| Subject: | #33193 [Opn->Bgs]: some addresses work, some don't | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79741@lists.php.net to get a copy of this message | ||
ID: 33193
Updated by: sniper@php.net
Reported By: temple64 at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: *Mail Related
Operating System: unix
PHP Version: 4.3.9
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-05-31 04:09:26] temple64 at yahoo dot com
Description:
------------
PHP version: 4.3.8-2.1
I am emailing the results of a form...
it always looks like it succeeds...
If I put in my yahoo account, it shows up right away.
If I put in the address it needs to go to, it never shows up
there.
If I send a test from my yahoo account to the address it needs
to go to, it shows up right away.
I also tested the form to another address - no email shows up.
I tested again to my yahoo account, shows up immediately.
Why would the email succeed to some addresses and not others?
FYI, the FROM address is valid.
Reproduce code:
---------------
<?
if(!empty($_POST)) extract($_POST);
function param($Name, $http_vars)
{ global $HTTP_POST_VARS;
if(isset($HTTP_POST_VARS[$Name]))
return($HTTP_POST_VARS[$Name]);
return("");
}
if ($Sign_Me_Up == "")
{$Sign_Me_Up="No";}
else
$Sign_Me_Up="Yes, $Sign_Me_Up";
$from = "email@domain.com";
$to = "email@domain.com";
$subject = "request - destination: $PopularDestinations";
$body = "Source = $source\r\n
First Name = $First_Name\r\n
etc...";
if($from != "" && $to != "" && $subject != "")
{
$headers = "From: " . $from . "\n" .
"To: " . $to . "\n" .
"CC: " . $cc . "\n" .
"BCC: " . $bcc;
$formsent= mail("", $subject, $body, $headers);
if ($formsent == 1)
{
print("Thank you for your request, we will respond to you shortly.");
}
else
print("I'm sorry, there's a problem with your form. Please try
again.");
}
?>
Expected result:
----------------
I expect to get the Thank You statement and receive the email
Actual result:
--------------
email works only for some addresses.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33193&edit=1