Page 1 of 1

Possible to Create Mail Message with RTF Text in Email?

Posted: Mon Apr 18, 2005 9:04 am
by kvg
Is it possible to send RTF text in an email, not as an attachment, but in the body of the email? If yes, what PHP mail command would do it? Thanks for any help.

Posted: Mon Apr 18, 2005 9:11 am
by feyd
there is only one php mail command: mail()

As for sending RTF, it'd only work if the client receiving it supports RTF. I'd suggest you send HTML and a plain text version in the email and leave it at that.

Posted: Mon Apr 18, 2005 9:35 am
by kvg
If the client supports rtf, is there a php mail command that will send rtf in the text of the email (not as an attachment)? (This is a request being made by my employer). We will continue to send plain text, if the answer to my question about rtf is No.

Posted: Mon Apr 18, 2005 7:27 pm
by feyd
it doesn't seem you understand my post too well. The one and only mail command can send whatever you wish as long as you give it the proper headers.

Posted: Tue Apr 19, 2005 7:55 am
by kvg
Can you help me to understand what the proper headers would be so that the email text is rtf?

Posted: Tue Apr 19, 2005 8:18 am
by feyd
I'd be doing what you should be already.. googling the different parts.

http://www.clickz.com/experts/archives/ ... hp/1559901 will shed a bit of light on sending multiple copies of the same document in various forms.
http://filext.com/detaillist.php?extdet ... oButton=Go will show variants of the content-type you will need to send