farklı bakış açısı düz metin e-posta biçimlerini php

4 Cevap php

I'm trying to align some text in a php generated plain text email. Thunderbird displays all characters as the same width. Newer versions of Outlook however do not. Is there some way I can force outlook to use a "fixed-width" font in the headers for instance?

İşte anda kullanarak üstbilgileridir

Content-Type: text / plain; charset = utf-8

4 Cevap

Bunun nedeni Outlook 2010 varsayılan görüntüler yerine, sabit genişlikli yazı daha orantılı olarak düz metin tarafından.

If you want Outlook 2010 to display these messages like 2003 did, then you can specify Courier New as the Plain Text font, using these steps:

  1. Dosya sekmesinde, Seçenekler'i tıklatın.
  2. Posta tıklayın.
  3. "Kırtasiye ve Yazı" tıklayın
  4. "Düz metin mesajları oluşturma ve okuma" altında Yazı düğmesine tıklayın
  5. Yazı tipi sekmesinde, yazı tipi ayarlarını değiştirin.
  6. Üç kez Tamam'ı tıklatın.

Dan http://social.technet.microsoft.com/Forums/en-NZ/outlook/thread/6a354c78-64d8-4b68-9651-0f1d33c950ac

HTML e-posta gönderiyor? Eğer öyleyse, Outlook, sabit genişlikli yazı tiplerini kullanmak olmaz.

Içerik türünü belirlerken deneyin:

Content-Type: text/plain

... Gibi bir şey kullanarak:

$headers = "Content-Type: text/plain; charset=UTF-8\n";
mail($to, $subject, $message, $headers); 

Bu bir kullanıcı tercihi var. Outlook ve Thunderbird hem de tek boşluklu veya oransal yazı tiplerini kullanmak üzere yapılandırılmış olabilir. Ben orantılı yazı ile Thunderbird kullanabilirsiniz.

Bir <pre> etiketi veya uygun CSS ile HTML e-posta göndererek bir geçersiz kılma eteğine zorlayamaz.

Ya da, daha iyisi, HTML formatında e-posta göndermek ve uygun sabit genişlik yazı tipini belirleyin.