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
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.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 03:01:29 2024 UTC