php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #621 mail() not RFC821/822 compliant (2/4)
Submitted: 1998-08-06 00:36 UTC Modified: 1998-08-13 15:58 UTC
From: walton at nordicdms dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.2a OS: Win32
Private report: No CVE-ID: None
 [1998-08-06 00:36 UTC] walton at nordicdms dot com
RCPT TO: header
-----------------
RFC821 4.1.1:
  RECIPIENT (RCPT)
    This command is used to identify an individual recipient 
    of the mail data; multiple recipients are specified by 
    multiple use of this command.
RFC821 2.
    If the SMTP-receiver can accept mail for that recipient 
    it responds with an OK reply; if not, it responds with 
    a reply rejecting that recipient (but not the whole 
    mail transaction).

As it stands right now, mail() in Win32 PHP is sending the
entire list of recipients in a single RCPT TO: header.  It
also does not include the addresses from any additional CC:
or BCC: headers that may be added.

As a result, the success of sending mail to more than one 
recipient depends heavily on the implementation of the MTA
that the mail is sent via.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-13 15:58 UTC] shane
It was never my intent to write a full blown MTA, and in fact, this one is a hack from code I found.  It was included to provide some form of mail capability on windows.  When and if I get time to deal with this I will, otherwise, if someone wants to do it, feel free :)

There are several good external mailers on NT that can be used via execing them.  One is called blat.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 23:01:32 2024 UTC