Jump to content

PHP mail - plain text whitespace issue...


Ultra

Recommended Posts

Hi,

 

I'm sending customers a confirmation email of their orders on our site.

 

The email is in plain text and has 4 columns - Item, Color, Quantity, Price, Subtotal.

 

Now it took me a while to make sure they're all perfectly aligned (with whitespaces between the columns so they are spaced out), and each text of a column is not too long (truncate it in that case)...

On my test server when I send those confirmation emails as a test they looked perfect in MS Outlook...

 

Now that the site is online and we test preview those plain text message in Yahoo or Hotmail Accounts, the text/columns are totally out of sync...

 

If sent in utf-8, they ignore if there is more then one whitespace after the words...

 

If sent in iso-8859-1, some (extra) whitespaces are in place - but not all of them, still the matrix is out of sync...

 

I know that it is possible though, as the confirmation emails I've been getting from Amazon.com for example are in plain text and the matrix (columns) work and are aligned.

 

How do I do that ?

 

Btw, I am using the standard php mail() function.

 

Thanx for your help in advance !!!

 

Mike

 

Link to comment
https://forums.phpfreaks.com/topic/113681-php-mail-plain-text-whitespace-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.