Jump to content

RTF fomatting to email content


ms.buggy

Recommended Posts

Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf');). Mail is sent correctly, but the formatting of the content includes rtf formatting like: "{\f2\fs20\insrsid8807860 Place:" for example, and not just the content text "Place".

I was assuming that the problem is with the 'Content-type' and 'Content-Transfer-Encoding', but after googleing about this rtf/mail issue, I'm getting the feeling that maybe this problem wont be so easy.

 

Thanks in advance.

-ms.B

Link to comment
Share on other sites

Ok, thanks.

I think this is pretty lame, becouse simple formatting is so light / easy to do in different email programs, like outlook and gmail.

 

I managed to do underlining by usign txt instead of rtf, and with underscore the phrase in my txt file(_phrase_). So now the "higlighted" sentance is underlined in the message that is sent (atleast when read in thunderbird or gmail), used content type is text/plain.

Are these _old fashioned ways_ good / reliable or even safe way to do some simple text formatting for emails, where content is read and inserted from separeted file (txt, rtf, etc..).

 

Also, I noticed that when the formatting is done in gmail, the content type is set to multipart/alternative, could there perhaps be some kind of table of the tags used in this content type -coding?

 

-ms.buggy

 

Link to comment
Share on other sites

The simple fact is that emails where designed to be plain text. Allot of people still switch there email clients to plain text to avoid pictures being loaded for example.

 

rtf is a microsoft propriety format.

 

If you want to format your emails with more detail your best bet is to use html, be aware though, that not all client will have this enabled.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.