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 #4721

send is the last statment

Details

Submitted2005-06-30 21:23 UTC
Fromgaboto at gmail dot com
Assignedcipri
StatusBogus
PackageMail_Mime
PHP Version4.3.11
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-06-30 21:23 UTC] gaboto at gmail dot com

Description:
------------
The mail is sent alright, but after been sent no more code is executed in the script, It Happen when using images in the html code.

Reproduce code:
---------------
$recipients = $haciaMail;
$mime = new Mail_mime();
$headers['From'] = $desde;
$headers['To'] = $haciaMail;
$headers['Subject'] = $asunto;

$params["host"]= -----;
$params["port"]= 25;
$params["auth"]= True;
$params["username"]= ----;
$params["password"]= -----;

$mime->setTXTBody($text);
$mime->setHTMLBody($body);

if(isset($imagen))
$mime->addHTMLImage($imagen);
$body = $mime->get();
$hdrs = $mime->headers($headers);
$mail_object =& Mail::factory('smtp', $params);
$mail_object->send($recipients, $hdrs, $body);

Expected result:
----------------
I expect the script to go on running