Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing Courier font when email is displayed at destination

Status
Not open for further replies.

Calator

Programmer
Feb 12, 2001
262
AU
We send emailed remittance advices to suppliers, as plain text in the body of the message. The advice includes a table that loses its column formatting when it is displayed at the receiving end (eg by Outlook) using a proportional font, eg Arial, as the default font. The advice displays ok when the destination uses a non-proportional font (eg Courier) as the default font.

How can we specify the font to be used by the destination for displaying our message?
 
The words "plain text" and "specify font" do not go together. That's why it's called "plain" text.

Your options are to construct the message as HTML or rich text, or to create your invoice in a suitable cross platform format (i.e. PDF) and attach it to said plain text emails.
 
What is the simplest way to turn our current message which is sent as plain text, into a message that forces the Courier font?

I am aware of pdf and html but I don't see those as the answer to my question as this would entail a total re-design.

Can anyone give an example of the code the needs to be written to specify for eg rich text with Courier?

 
Easiest way? Open your document in Word, format it, and save it as rich text. Then type the .rtf file or open it in a text editor and check the codes. That's how I did it several years ago to get reports to be downloaded from the web in the correct format.
 
thanks guys, but sorry, no stars granted this time.
I found the answer in RFC 1896 and it lookes likes this:
Replace header:
Content-Type: text/plain
with:
MIME-Version: 1.0
Content-Type: text/enriched
<fontfamily><param>courier</param><fixed><nofill>

Simple, isn't it?
Does anyone think that there is mail software out there that will not understand the above?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top