PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail

Class that provides multiple interfaces for sending emails

Download latest release 2.0.0 (there might be newer Composer installable version)

License: New BSD License

Description

PEAR's Mail package defines an interface for implementing mailers under the PEAR hierarchy. It also provides supporting functions useful to multiple mailer backends. Currently supported backends include: PHP's native mail() function, sendmail, and SMTP. This package also provides a RFC822 email address list validation utility class.

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#19ClosedBug2003-09-17Mail_mail::send() fails with safe mode switched on
#268DuplicateBug2003-11-18Error handling trouble in Mail_RFC822::validateMailbox()
#584ClosedBug2004-01-15Mail::mail fails on PHP 4.2.2
#719ClosedBug2004-02-09Output of MIME_RFC822::parseAddressList() wrong in some case
#849ClosedBug2004-02-24RFC822.php doesn't generate error for malformed addresses
#856ClosedBug2004-02-25Tripple Line Feed Error
#1050ClosedBug2004-03-22Missing EHLO/HELO string
#1139ClosedBug2004-04-05Always Fatal error: Cannot redeclare class mail in ......
#1222ClosedBug2004-04-16Use of undefined constant PEAR_MAIL_FAILED
#1289ClosedBug2004-04-26Feature request: VERP style deliveries
#1434BogusBug2004-05-18parseAddressList won't parse unqualified addresses
#1460ClosedBug2004-05-20patch to handle multiple cc/bcc/etc. fields
#1552BogusBug2004-06-03Doesn't check for permissions of `sendmail'; but checks for ownership instead.
#1563ClosedBug2004-06-06Fatal error: Using $this when not in object context
#1594No FeedbackBug2004-06-09Recipient name containing dots makes sendmail return error code 67
#1869ClosedBug2004-07-14invalid email address not recognized when validating
#1881ClosedBug2004-07-15Use of "is_executable" function in Sendmail driver
#2046ClosedBug2004-08-03error in documentation
#2242No FeedbackBug2004-08-27Error with UTF-8 Headers
#2275ClosedBug2004-09-03Address typo makes Mail_sendmail::send silently drop mail with no error
#2476BogusBug2004-10-07Mail Package: Bcc Header visible
#2561ClosedBug2004-10-18PEAR_MAIL_FAILED undefined constanst
#2768BogusBug2004-11-16Points in From are not validated
#2931ClosedBug2004-12-08_validateQuotedString() is too strict
#3158ClosedBug2005-01-10exit code for Mail::Sendmail->send not detected correctly
#3291No FeedbackBug2005-01-25Mail can not be sent
#3301BogusBug2005-01-26Mail can not be sent from CLI
#3776ClosedReq2005-03-11smtp connect timeout would be swell
#4122ClosedReq2005-04-11persistant smtp connections
#4241ClosedReq2005-04-28More detailed error for SMTP mail
#4636ClosedBug2005-06-20send() fails with more than one 'Received' header
#4705Wont fixBug2005-06-29smtp.php script should default to the server's SMTP setting in php.ini
#4745BogusBug2005-07-05Problem when using especias characters
#4943ClosedBug2005-07-29RFC822.php function isValidInetAddress noto working properly
#5017ClosedReq2005-08-06Set envelope sender
#5190ClosedBug2005-08-23echo command in smtp.php 1.22
#5212ClosedBug2005-08-26Mail_smtp should send RSET on error
#5254ClosedBug2005-08-31Mail_smpt::send echo's to screen
#5372ClosedBug2005-09-12'persist' option, one error kills every call to send() afterwards
#5388ClosedReq2005-09-13SMTPMX: MX baseddirect delivery
#5857BogusBug2005-11-03Cc mail aren't send
#5970BogusBug2005-11-15require_once('Mail.php');
#6023BogusBug2005-11-21parseAddressList doesn't support new IDN names
#6033ClosedBug2005-11-22sendmail.php fails if open_basedir is set
#6229ClosedReq2005-12-12Protection against mail injection
#6590No FeedbackBug2006-01-26No Sent Date on messages via SMTP
#6648BogusBug1.1.92006-01-31rfc822 problem during smtp conversation phase.
#6854BogusReq2006-02-21encoding spaces in mail subject
#6983ClosedReq1.1.92006-03-01no codes generated for PEAR_Error
#7138ClosedBug2006-03-16http://pear.php.net/manual/en/package.mail.mail-rfc822.parseaddresslist.php
#7491ClosedBug1.1.102006-04-26Mail::parseRecipients() not returning PEAR Error
#7492ClosedBug1.1.102006-04-26Extra newline added before body
#7562ClosedBug1.1.102006-05-05foo@bar.museum is rejected
#7616ClosedBug2006-05-12nestGroups defaults to true, not false
#7682ClosedBug1.1.102006-05-20sendmail.php: constant PHP_EOL - assumed 'PHP_EOL'
#7694BogusBug1.1.102006-05-22E_STRICT problem
#7785ClosedBug1.1.102006-06-01sendmail driver needs '-i' in sendmail_args
#8047BogusBug1.1.102006-06-28Cc and Bcc handling
#8379BogusReq1.1.102006-08-07Support no disconnect on SMTP send
#8543ClosedBugCVS2006-08-23Missing newline after headers when using sendmail
#8545ClosedBug2006-08-23Bcc doesn't work
#8685ClosedBug1.1.112006-09-13Upgrade to 1.1.11 breaks email sending
#8688ClosedBug1.1.122006-09-14Multiple-line-Header values breakup
#8699ClosedBug1.1.122006-09-14slightly improved regex for header injection checking
#8705BogusBug1.1.122006-09-14Using $this when not in object context
#8723ClosedBug1.1.132006-09-17Missing trailing newline in headers with SMTP backend
#8724No FeedbackBug1.1.132006-09-18_sanitizeHeaders removes boundary
#8818OpenReq1.1.132006-09-29Request Option to suppress email address validation (allow RFC OK fringe cases)
#8919BogusReq1.1.132006-10-09Return-Path setting
#8963DuplicateBug1.1.132006-10-11no newline between headers and body (reopen #8543)
#9137ClosedBug1.1.142006-10-23_hasUnclosedQuotes() doesn't properly handle a double slash before an end quote
#9322No FeedbackReq1.1.142006-11-13SSL/TLS support
#9701BogusBug1.1.142006-12-27PHP 5 Compatible Issues
#9810BogusBug1.1.142007-01-12call to sanitizeHeaders fails
#9911ClosedReq1.1.142007-01-22Add support for SMTP PIPELINING (RFC 2920)
#9945BogusBug1.1.142007-01-25Mail not compatible with stable release of Net_SMTP stable
#9947ClosedBug1.1.142007-01-25Avoid some strict warnings
#9950BogusBug2007-01-25PHP Strict errors even with E_STRICT Disabled
#10305ClosedBug1.1.142007-03-08Reopening of Bug #10298
#10610ClosedReq2007-04-04Return Path not settable
#10930BogusBug1.1.142007-05-04bcc line not fully parsed if it contains \r\n
#11020BogusReq1.1.142007-05-11return path when using SMTP
#11093ClosedReq1.1.142007-05-22Bump to package.xml 2.0
#11178BogusBug1.1.142007-05-30parseAddressList doesn't allow .'s in names
#12071ClosedBug1.1.142007-09-18Error message: Assigning the return value of new by reference is deprecated
#12186ClosedBug1.1.142007-10-05_sanitizeHeaders() and prepareHeaders() do not check $headers on beeing array
#12478OpenReqCVS2007-11-18hide PHP warnings, raised from PHP functions used in the class
#12557OpenReq1.1.142007-11-30Use mb_send_mail() if available
#12598ClosedReq1.1.142007-12-03Create a 'stub' mail driver
#12708BogusBug1.1.142007-12-17RFC882 validation broken for certain From header
#12902DuplicateBug1.1.142008-01-14bcc recipients shown in the final email headers
#13587OpenReq1.1.142008-04-04relay params like "NOTIFY=SUCCESS,FAILURE"
#13659ClosedBug1.1.142008-04-12Mail parse error in special condition
#13764ClosedReq1.1.142008-04-24Add addServiceExtensionParameter()
#13766ClosedReq1.1.142008-04-24Add method to obtain the Net_SMTP object
#13772ClosedBug1.2.0a12008-04-25Fixes some issues with the new getSMTPObject code
#13931No FeedbackBug1.2.0a22008-05-18Does not allow perfectly good 'From' address
#14807BogusBug1.1.142008-10-16Failed "From" validation on Windows-1251 encoding
#14811BogusBug2008-10-17Mail sent fail via smtp
#15173ClosedReq1.1.142008-11-27Retrieve the "queued as" information
#15612BogusBug1.1.142009-01-11Not able to send mail
#15620ClosedDoc1.2.0b12009-01-12Please update package license
#16067ClosedReq1.2.0b12009-04-03need to propogate the greeting sent by the server as retrieved by Net_SMTP
#16176BogusBug1.2.0b12009-05-03'Date' field not displaying correctly.
#16200ClosedBug1.1.142009-05-07security hole allow to read/write Arbitrary File
#16318BogusReq1.2.0b22009-06-11SMTP: Retrieve response on successful send
#16432ClosedReq1.2.0b22009-07-12Would you release 1.2.0b2 as a stable, please.
#16805BogusBug1.1.142009-11-19Install package doesn't include smtp.php
#16818BogusBug1.2.0b22009-11-21Validation Failed Error when entering a dot in FROM Header
#16900BogusBug1.1.142009-12-10Problem with PHP 5.3.0
#16969ClosedBug1.1.142010-01-05Deprecation warning
#17047Wont fixReq1.2.0b22010-01-30Allow body text to be passed as resource to send()
#17178ClosedBug1.2.02010-03-01Mail_RFC822::parseAddressList does not accept RFC-valid group syntax
#17317ClosedBug1.2.02010-04-16Invalid periods in mailbox not marked as invalid
#17318ClosedDoc1.2.02010-04-17documentation lacking
#17391DuplicateReq2010-05-12Deprecated return value by reference PHP 5.3.2
#17513ClosedReq1.2.02010-06-22passing tls parameter to SMTP driver and to NET_Smtp
#17553ClosedBugUnknown2010-07-02Error 8192 in Mail.php
#17758OpenBug1.2.02010-08-20smtpmx driver not work for windows.
#17865ClosedBug1.2.02010-09-14Mail hangs when "Allowed memory size of bytes exhausted" error using smtp
#17866ClosedBug1.2.02010-09-14Non-static method Mail_RFC822::parseAddressList called statically
#17888ClosedReq1.2.02010-09-23Patch to reduce peak memory usage when using the smtp driver
#18109ClosedBug1.2.02010-12-09New "pipelining" parameter for Mail SMTP never used
#18179No FeedbackBug1.2.02011-01-07Mail::factory() then send crashes PHP
#18314ClosedBug1.2.02011-02-25SMTP: Failed to connect socket: Permission denied (code: -1, response: )
#18432Wont fixDoc2011-04-12wrong user note
#18573OpenReq1.2.02011-05-31MAIL FROM and From: can't be different?
#18607DuplicateBug1.2.02011-06-18Persist connection not always terminated as desired
#18766OpenReqSVN2011-08-29SMTP error code is not available to user of smtp
#18820DuplicateBug1.2.02011-09-09Fatal Error: Assigning the return value of new by reference is deprecated
#19160BogusBug1.2.02011-12-28fail to send two different mails from single script
#19456DuplicateBug1.2.02012-06-05exist ' &new Classname' call.
#19628OpenReq1.2.02012-10-01DKIM Signing No Work
#19911BogusBug1.2.02013-04-25Missing method in Mail class
#19952BogusBug1.2.02013-05-17Danish characters (æøå) in "From" differs from the "To" field.
#20370ClosedBug1.2.02014-08-12Deprecation in Object instantiation
#20424ClosedBugSVN2014-10-08PHP Strict Standards
#20463ClosedBug1.2.02014-12-13domain-literal parsing error
#20513ClosedBug1.2.02015-03-08Mail_smtp::send() doesn't close socket for smtp connection
#21043OpenReq1.3.02016-03-22empty queued_as by pipelining
#21082ClosedBugSVN2016-06-16Inconsistent licensing
#21117OpenBug1.3.02016-09-14Mitigate STRIPTLS Attack Vector
#21138DuplicateBug1.3.02016-10-25Unable to disable TLS
#21197ClosedBug1.3.02017-03-25PHP 7 compatibility only needs &new changed to new
#21247ClosedBug1.4.12017-10-09Depreciation Warnings
#29030OpenDoc2025-02-19User note that is a documentation problem