Mail_mime, smarty and some notice
| From: | Köteles Zoltán | Date: | Tue, 25 Jul 2006 12:11:19 +0000 |
| Subject: | Mail_mime, smarty and some notice | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24752@lists.php.net to get a copy of this message | ||
Hello
I'd like to use the Mail_mime package with smarty, but i always got some notice. Here's my code:
include_once 'Mail.php';
include_once 'Mail/mime.php';
$hdrs = array(
'From' => $_SESSION['site_sitemail'],
'Subject' => $strAccountMailActivateSubject
);
$mime = new Mail_mime("\n");
$mime->setHTMLBody($tpl->fetch('mail/mail_activate.tpl'));
$body = $mime->get();
$hdrs = $mime->headers($hdrs);
$mail =& Mail::factory('mail');
$mail->send($email, $hdrs, $body);
And the notices:
Notice: Only variable references should be returned by reference in /libs/pear/Mail/mime.php on line 341
Notice: Only variable references should be returned by reference in /libs/pear/Mail/mime.php on line 593
Pear version: 1.4.9
Mail: 1.1.10
Mail_Mime: 1.3.1
Smarty: 2.6.14
What's the problem with this?
Thanks a lot
ZoTya