note 105679 deleted from function.mail by tomsommer

From: Date: Tue, 07 Feb 2012 13:19:21 +0000
Subject: note 105679 deleted from function.mail by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185891@lists.php.net to get a copy of this message
Note Submitter: Andrew P. ---- Before invoking the mail() function, it's useful to use the stripslashes() function to remove embedded backslashes in the message string that are used as escape characters for embedded apostrophes, quotation marks and such. For example, instead of using mail($to, $subject, $message, $headers); use mail($to, $subject, stripslashes($message), $headers); The result is a more readable message.

« previous php.notes (#185891) next »