Re: [PHP] using the mail() command

2008-02-03 Thread Richard Lynch
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

 bBlah/bp

 --$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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] using the mail() command

2008-02-02 Thread Ron Piggott
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

bBlah/bp

--$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



Re: [PHP] using the mail() command

2008-02-02 Thread Ron Piggott
Thanks for the new command and help.  It worked!  Ron

On Sat, 2008-02-02 at 19:46 -0500, Greg Bowser wrote:
 First off, I would use heredoc syntax so you don't need to escape the
 quotes:
 
 $message = EOF
 blah blah blah
 $your $stuff
 $here
 
 '
 \ blah blah
 
 EOF;
 
 Also, since you're using text/html as your content-type, you should
 probably be using quot; instead of .
 
 --Greg

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php