|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33193 some addresses work, some don't
Submitted: 2005-05-31 04:09 UTC Modified: 2005-05-31 07:18 UTC
From: temple64 at yahoo dot com Assigned:
Status: Not a bug Package: *Mail Related
PHP Version: 4.3.9 OS: unix
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: temple64 at yahoo dot com
New email:
PHP Version: OS:


 [2005-05-31 04:09 UTC] temple64 at yahoo dot com
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 
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 ($Sign_Me_Up == "")
	$Sign_Me_Up="Yes, $Sign_Me_Up";
$from = "";
$to = "";
$subject = "request - destination: $PopularDestinations";
$body = "Source = $source\r\n
First Name = $First_Name\r\n

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.");
	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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-31 07:18 UTC]
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 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.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 22:03:37 2021 UTC