Mail() does not use FQDN when sending SMTP helo
| Bug #38091 | Mail() does not use FQDN when sending SMTP helo | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2006-07-13 09:28 UTC | Modified: | 2021-03-15 07:00 UTC |
|
||||||||||
| From: | danb1974 at gmail dot com | Assigned: | kalle (profile) | |||||||||||
| Status: | Closed | Package: | Mail related | |||||||||||
| PHP Version: | * | OS: | Windows | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2006-07-13 09:28 UTC] danb1974 at gmail dot com
Description:
------------
Computer reports "Full computer name: trashcan2.intranet" in my computer properties, computer name tab.
Sending mail using mail() functions generates a "helo trashcan2" instead of "helo trashcan2.intranet", which is rejected by a unforgiving smtp server (helo requires fqdn).
Reproduce code:
---------------
mail('danb1974@gmail.com', 'test', 'message')
Actual result:
--------------
Warning: mail(): SMTP server response: 504 <trashcan2>: Helo command rejected: need fully-qualified hostname in C:\Temp\php\test.php on line 6
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-07-14 06:23 UTC] danb1974 at gmail dot com
[2006-07-14 07:45 UTC] danb1974 at gmail dot com
[2009-06-22 13:52 UTC] rick at longbowgames dot com
[2009-06-30 11:40 UTC] kalle@php.net
[2009-06-30 11:55 UTC] kalle@php.net
[2010-10-22 14:17 UTC] kalle@php.net
-Status: Assigned +Status: Closed