php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #319 Unable to pass extra mail headers with mailserver running sendmail 8.8.6
Submitted: 1998-04-27 10:59 UTC Modified: 1998-05-23 13:35 UTC
From: thomasf at kirov dot eunet dot no Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Release Candidate 4 OS: Win NT
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thomasf at kirov dot eunet dot no
New email:
PHP Version: OS:

 

 [1998-04-27 10:59 UTC] thomasf at kirov dot eunet dot no
When using the mail command in PHP3RC4-win32,
a mailserver with FreeBSD and Sendmail 8.8.6, 
the extra headers aren't passed on correctly.

A very easy workaround is to pass ekstra headers 
at the end of the subject string instead:

   mail("$rcpt", "Subject\r\nReply-To: Thomas Flemming <thomasf@kirov.eunet.no\r\nX-Mailer: PHP", 
        "$msg"); 


Regards
Thomas Flemming
EUnet Media, Norway

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-23 13:35 UTC] shane
First off,
read the docs, put extra headers in the 4th argument.  Secondly, mail() is fixed in latest cvs.


Oh, and third, mail() on nt doesnt use sendmail.  It uses our own code, so it's not quite as flexible as the unix counterpart.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 21:01:27 2025 UTC