note 68359 added to function.mail
| From: | php-general at lists dot php dot net | Date: | Mon, 24 Jul 2006 15:55:24 +0000 |
| Subject: | note 68359 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115096@lists.php.net to get a copy of this message | ||
correction for class multipartmail
<?php
function addmessage($msg = "", $ctype = "text/plain"){
$this->parts[0] ....
?>
if you are adding attachment first and then addmessage you can easy overwrite added attachment -
better use
<?php
function addmessage($msg = "", $ctype = "text/plain"){
$this->parts[count($this->parts)] ....
?>
----
Server IP: 147.32.160.17
Probable Submitter: 81.19.14.46
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- http://master.php.net/note/edit/68359
Del: integrated -- http://master.php.net/note/delete/68359/integrated
Del: useless -- http://master.php.net/note/delete/68359/useless
Del: bad code -- http://master.php.net/note/delete/68359/bad+code
Del: spam -- http://master.php.net/note/delete/68359/spam
Del: non-english -- http://master.php.net/note/delete/68359/non-english
Del: in docs -- http://master.php.net/note/delete/68359/in+docs
Del: other reasons-- http://master.php.net/note/delete/68359
Reject -- http://master.php.net/note/reject/68359
Search -- http://master.php.net/manage/user-notes.php