Re: Help - html mail
| From: | Hank Marquardt | Date: | Wed, 28 Nov 2001 21:11:38 +0000 |
| Subject: | Re: Help - html mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75949@lists.php.net to get a copy of this message | ||
http://www.php.net/stripslashes
... in short they are there to ease db insertions.
On Wed, Nov 28, 2001 at 05:23:02PM -0500, Brian V Bonini wrote:
> I'm passing an html email from a form
> like this:
>
> $message = $message_html;
>
> where message_html is the text area name.
>
> mail($to, $subject, $message, $headers);
>
> I end up with, for example:
>
> <div align=center\">
> <table width=550\" border=0\" cellspacing=0\" cellpadding=0\">
> <tr>
> <td bgcolor=#01405A\"><img
> src=http://www.gfx-design.com/vantico/spacer.gif\"
> width=1\" height=10\"
> alt=\" border=0\"></td>
> </tr>
>
> it's trying to escape the quotes and at times completely
> cutting them out.
>
> The same snippet prior to being sent:
>
> <div align="center">
> <table width="550" border="0" cellspacing="0"
> cellpadding="0">
> <tr>
> <td bgcolor="#01405A"><img
> src="http://www.gfx-design.com/vantico/spacer.gif"
> width="1" height="10"
> alt="" border="0"></td>
> </tr>
>
> Why is this happening? How can I stop it?
>
> -brian
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
Hank Marquardt <hank@yerpso.net>
http://web.yerpso.net
GPG Id: 2BB5E60C
Fingerprint: D807 61BC FD18 370A AC1D 3EDF 2BF9 8A2D 2BB5 E60C
*** Web Development: PHP, MySQL/PgSQL - Network Admin: Debian/FreeBSD
*** PHP Instructor - Intnl. Webmasters Assn./HTML Writers Guild
*** Beginning PHP -- Starts January 7, 2002
*** See http://www.hwg.org/services/classes