|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66498 mail doesn't send if body starts with 'fe'
Submitted: 2014-01-16 17:51 UTC Modified: 2014-12-30 10:42 UTC
From: cmeyer at cesa10 dot k12 dot wi dot us Assigned:
Status: No Feedback Package: Mail related
PHP Version: 5.5.8 OS: Fedora core 19
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-01-16 17:51 UTC] cmeyer at cesa10 dot k12 dot wi dot us
If the body (msg) of the email starts with 'fe', the mail isn't sent.  mail() show success, but mail is not received.  If I change the 'fe' so something else, it works fine.

PHP version if Fedora 19 php 5.5.7

Test script:
    $email_to = "";
    $email_cc = "";
    $email_subject = "Backup Verification";
    $email_body = "fe\r\n";  // <- seems to work fine but no mail delivered
//    $email_body = "mfe"\r\n"; <- works fine and mail delivered
    $headers = "From:\n";

    if (!mail($email_to, $email_subject, $email_body, $headers))
    { print "Email failed\n"; }
    { print "Email success\n"; }

Expected result:
mail should be received

Actual result:
mail not received, though mail() does not return an error.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-16 18:22 UTC]
-Status: Open +Status: Feedback
 [2014-01-16 18:22 UTC]
Not to ask a silly question, but have you already checked that spam filters aren't rejecting the mail, or that it's not otherwise being filtered out of view?
 [2014-01-16 19:07 UTC] cmeyer at cesa10 dot k12 dot wi dot us
-Status: Feedback +Status: Open
 [2014-01-16 19:07 UTC] cmeyer at cesa10 dot k12 dot wi dot us
Good question on spam filters.  No, I'm not seeing anything show up in the spam filters.  Also, this is a pretty direct internal show, avoiding most of our spam filters.
 [2014-01-16 19:20 UTC]
-Status: Open +Status: Feedback
 [2014-01-16 19:20 UTC]
Can you get the mail server's sysadmin to tell you whether it received any kind of connection from your system? That can at least tell you which server the problem is on (since, as you've probably guessed, my first inclination is that this oddly-specific problem is not due to a bug with PHP).
Another thing to check is, depending on your setup, whether mail() simply queued the email with the local sendmail client and whether that client itself had any errors trying to send.
 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot 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 "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 00:01:30 2024 UTC