php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18625 mail() not sending to addresses with a - in the domain
Submitted: 2002-07-29 13:08 UTC Modified: 2002-10-14 19:26 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: mike dot barretta at secbmail dot belvoir dot army dot mil Assigned:
Status: No Feedback Package: Mail related
PHP Version: 4.2.3 OS: win2k
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-07-29 13:08 UTC] mike dot barretta at secbmail dot belvoir dot army dot mil
given:
  $to = "foo@foo-foo.com";

command:
  mail($to,"test","test");

result:
  warning: server error line xxx
------------------

if sending to an address without the - in the domain, mail() works fine so i'm sure it's not a config problem.  also, the - address is valid and i can send mail via a mail client.  

the - addresses worked in v4.2.1


 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-11 13:32 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

I cannot replicate this bug, it sounds like the SMTP server is rejecting this domain. If latest CVS does not work, see if you can successfuly send email to an address with a '-' in it manually via the SMTP server your php is using.
 [2002-09-26 20:04 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2002-09-27 06:56 UTC] mike dot barretta at secbmail dot belvoir dot army dot mil
just installed new version 4.2.3.

same problem as before.  email won't send via mail() function to an address with '-' in the domain.  email can send through the smtp server php is using if i use client like outlook.
 [2002-09-27 07:12 UTC] sniper@php.net
You were asked to use the latest snapshot, not release.
There were some mail() related fixes in it, so please try it out:

 http://snaps.php.net/win32/php4-win32-latest.zip

And make sure you replace ALL old binaries with the
new ones from that package. Especially php4ts.dll

 [2002-10-14 19:26 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 11:01:28 2024 UTC