Google Blogoscoped

Forum

Text Formatting Problem

sanj [PersonRank 1]

Wednesday, June 1, 2005
19 years ago

In one of our projects we are generating text/plain mails to be sent to the clients.For this we are formatting the mail something like the following
Billing No : xxxx

Item Desc Qty Rate
aaa 1 12.50
bbb 2 5.00

The above format is displayed correctly in yahoo and hotmail.But when a gmail user gets it he/she gets the thing as follows:

Billing No : xxxx

Item Desc Qty Rate
aaa 1 12.50
bbb 2 5.00

why is the formatting being changed also few lines are displayed in color while others are not. Does gmail override the formatting we do.

This is urgent.

thanx

Philipp Lenssen [PersonRank 10]

19 years ago #

I suppose your upper example relied on a monospace font as well as spacing being kept... my forum ignored that. I guess Gmail does the same – remove double spaces, double breaks, etc. Also, as you said, they sometimes change the color in order to e.g. display a signature differently.

Philipp Lenssen [PersonRank 10]

19 years ago #

As for a solution: use tables and HTML mail.

sanj [PersonRank 1]

19 years ago #

thanx for the response Lenssen,
but a user can either subscribe for text mail or HTML mail during subscription.
And hence based on the selection we have to either send a text or HTML mail.So if the option is text we format it and send the mail as content-type='text/plain'.

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!