note 32763 added to function.mail
| From: | ghoffman at ucsd dot edu | Date: | Fri, 06 Jun 2003 03:40:58 +0000 |
| Subject: | note 32763 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49838@lists.php.net to get a copy of this message | ||
If a quote mark finds its way into the message text, say, through a web form, it will cause a
premature truncation of the message. I use a simple function to convert quote marks to tick marks,
as follows:
$message=str_replace("\"", "'", $message);
Just include this after assembling the $message, but before invoking the mail() function.
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32763
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32763&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32763&report=yes