note 81797 added to ref.mail
| From: | pmonjo2000 at yahoo dot com | Date: | Thu, 13 Mar 2008 18:37:48 +0000 |
| Subject: | note 81797 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137032@lists.php.net to get a copy of this message | ||
I have found the function provided by nielsvan den berge very useful. However, I would change the
following:
<?php
$file_name = substr($attachments[$i]["file"], (strrpos($attachments[$i]["file"],
"/")+1));
?>
into
<?php
$file_name = $attachments[$i]["name"];
?>
With this additional column, it is possible to set the name of the attachment to whatever value we
want.
----
Server IP: 130.206.1.5
Probable Submitter: 83.42.82.32
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- https://master.php.net/note/edit/81797
Del: integrated -- https://master.php.net/note/delete/81797/integrated
Del: useless -- https://master.php.net/note/delete/81797/useless
Del: bad code -- https://master.php.net/note/delete/81797/bad+code
Del: spam -- https://master.php.net/note/delete/81797/spam
Del: non-english -- https://master.php.net/note/delete/81797/non-english
Del: in docs -- https://master.php.net/note/delete/81797/in+docs
Del: other reasons-- https://master.php.net/note/delete/81797
Reject -- https://master.php.net/note/reject/81797
Search -- https://master.php.net/manage/user-notes.php