Solved

Programatically setting the body font for Outlook emails

Posted on 2000-04-01
5
699 Views
Last Modified: 2013-12-03
I have a form on the web which uses a Perl script to send the form as an email. The email is read in Outlook, but the font defaults to Times New Roman.

I would like to get the form to be automatically displayed in Outlook in a fixed width font such as Fixedsys so that all the columns line up.

How can I do this? I expect that I would need to either put in some markup tags in the message, or a enter a content type.
0
Comment
Question by:HeSave
  • 2
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
SMosher earned 100 total points
ID: 2678873
Users generally have control over the format used to display plain-text messages, so you need to send in another format -- HTML. Your Perl script would need to generate an HTML format message with Content-Type: text/html for the HTML body. The exact method is probably going to depend on your site's mail server.

Note that Outlook 97 can't read HTML mail and would get the HTML content as an attached web page.
0
 
LVL 9

Expert Comment

by:david_levine
ID: 2679816
I think what you are looking to do is just change the font on the one Outlook client that will read the generated message. Is that correct?

If so, then what you need to do is force that one client to always read in fixed fonts. That would normally be under Tools / Options / Mail Format tab and then Fonts button.

David
0
 

Author Comment

by:HeSave
ID: 2679849
David,
Thanks for your reply. The email is sent to multiple clients, therefore configuration on the client side is not an option.

There must be some way of marking up the message so that it gets displayed in a chosen font.

So far, SMosher's answer looks most promising and I'll give it a go. But there must be a way of achieving what I want because when I send an email from outlook to outlook, I can set the font, colour etc. and it gets displayed correctly on all outlook clients. How does Outlook markup these messages?
0
 
LVL 9

Expert Comment

by:david_levine
ID: 2679875
Outlook allows you to send formatted messages - RTF, Word or HTML.

David
0
 

Author Comment

by:HeSave
ID: 2681147
I got the job done by adding the "content-type: text/HTML" to my perl script and marking up the message body with the <FONT> tag.

Thanks for your help.

Thanks for your time David, sorry but SMosher gave the solution first.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Use email signature images to promote corporate certifications and industry awards.
Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now