PEAR is archived and read-only

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

Home » Mail » Mail_Mime » Bug #5848

Warning: strpos(): Empty delimiter. in /usr/share/php/Mail/RFC822.php

Details

Submitted2005-11-02 10:28 UTC
Fromarthur at movenext dot nl
StatusBogus
PackageMail_Mime
PHP Version4.4.0
OSLinux
Roadmaps(Not assigned)

Comments

[2005-11-02 10:28 UTC] arthur at movenext dot nl

Description:
------------
I get the following error when trying to send a mail using Mail_mime:

Warning: strpos(): Empty delimiter. in /usr/share/php/Mail/RFC822.php on line 622

Test script:
---------------
include_once('Mail.php');
include_once('Mail/mime.php');

$crlf = "\n";
$hdrs = array(
'From' => $from_address. ' ('.$from_name.')',
'Subject' => $subject,
);

$mime = new Mail_mime($crlf);

//$mime->setTXTBody($text);
$mime->setHTMLBody($html_message);

$body = $mime->get();
$hdrs = $mime->headers($hdrs);

$mail =& Mail::factory('mail');
$mail->send($from_address. ' ('.$from_name.')', $hdrs, $body);

[2005-11-02 13:45 UTC] arthur at movenext dot nl

Please disregard this report