Possible to Create Mail Message with RTF Text in Email?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kvg
Forum Newbie
Posts: 3
Joined: Mon Apr 18, 2005 8:57 am

Possible to Create Mail Message with RTF Text in Email?

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
kvg
Forum Newbie
Posts: 3
Joined: Mon Apr 18, 2005 8:57 am

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
kvg
Forum Newbie
Posts: 3
Joined: Mon Apr 18, 2005 8:57 am

Post by kvg »

Can you help me to understand what the proper headers would be so that the email text is rtf?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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
Post Reply