Re: " using the mail() command
| From: | Richard Lynch | Date: | Mon, 04 Feb 2008 02:57:03 +0000 |
| Subject: | Re: " using the mail() command | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268614@lists.php.net to get a copy of this message | ||
I would think you'd want all that MIME stuff in the headers...
But I don't really know.
If you want a quote in the HTML part, use &qout;
In the plain-text, I would assume \" would embed a quote...
On Sat, February 2, 2008 6:26 pm, Ron Piggott wrote:
> When I use the mail($email, $subject, $message, $headers); command I
> assign the value of $message as follows:
>
> $boundary = md5(uniqid(time()));
>
> $message = "
>
> --$boundary
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
> blah
>
> --$boundary
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
> <b>Blah</b><p>
>
> --$boundary--
> ";
>
> I would like to be able to include a " in my message body --- both the
> HTML and text version --- how can I accomplish this? (I use a " to
> assign the value of $subject). I have been able to get \" to work ---
> but \" shows when reading the e-mail, not just the ".
>
> Thanks for your help
>
> Ron
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?