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