PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_Mime » Bug #5837

Mail_Mime: Build message for Net_SMTP

Details

Request #5837Mail_Mime: Build message for Net_SMTP
Submitted2005-10-31 23:02 UTC
Frommortonda at dgrmm dot net
Assignedcipri
StatusClosed
PackageMail_Mime
PHP Version4.3.10
OSany
Roadmaps1.4.0, 1.4.0a1

Comments

[2005-10-31 23:02 UTC] mortonda at dgrmm dot net

Description:
------------
Net_SMTP just needs a single parameter to its ->data() function, so the headers need to be converted into text and concatenated with the body. Could Mail_Mime provide this?

$mime->getMessage();

In that function it would do something like:

foreach($hdrs as $key=>$val) {
$hdr .= "$key: $val\r\n";
}

return $hdr . "\r\n" . $body;