php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21901 /Mail/mime.php Undefined property: text, source line 408
Submitted: 2003-01-27 09:25 UTC Modified: 2003-02-14 10:38 UTC
From: andres at surf dot ee Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.0 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andres at surf dot ee
New email:
PHP Version: OS:

 

 [2003-01-27 09:25 UTC] andres at surf dot ee
My source code:
$mimetext = new Mail_mime($crlf);
$mimetext->setTXTBody($textbody);

error from log file (clean 4.3.0 install):
PHP Notice:  Undefined property:  text in /usr/local/lib/php/Mail/mime.php on line 408
Causing my text based emails to be empty.


Source reads (line 408):
$message =& $this->_addTextPart($null, $this->text);

Fixed it to
$message =& $this->_addTextPart($null, $this->_txtbody);


After fix, everything is back to old behaviour.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-14 10:38 UTC] mj@php.net
This bug has been fixed in CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jun 20 02:01:33 2025 UTC