Jump to content

Is PHP Responsible


slashemail

Recommended Posts

Hello,

I am using [b]phpmailer[/b] to send mail from a Win2k3 server.

Messages sent as plain text gets garbled(Indentation is lost) when i view them in Outlook.

Is it a PHP(i bet not), Outlook, phpmailer,(any other) problem.

Please suggest me a solution as how to indent mail(plain text).

P.S:I dont want to send the mail as HTML.I want to format the mail as plain text.

Awaiting Comments.......

Thanks.
Link to comment
Share on other sites

[!--quoteo(post=366726:date=Apr 20 2006, 08:20 AM:name=Tux User)--][div class=\'quotetop\']QUOTE(Tux User @ Apr 20 2006, 08:20 AM) [snapback]366726[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hello,

I am using [b]phpmailer[/b] to send mail from a Win2k3 server.

Messages sent as plain text gets garbled(Indentation is lost) when i view them in Outlook.

Is it a PHP(i bet not), Outlook, phpmailer,(any other) problem.

Please suggest me a solution as how to indent mail(plain text).

P.S:I dont want to send the mail as HTML.I want to format the mail as plain text.

Awaiting Comments.......

Thanks.
[/quote]

well i believe it is a problem of the protocal (smtp) and outlook. in general if you send plain text emails all formating is lost so all email browsers can recieve and decode the only way i believe around this is to set the header for the mail to html that way the formating should stay (if it dont then u no it is something wrong with php mailer). all well know email browsers support html emails so i cant see any reason why you cant use it
Link to comment
Share on other sites

[!--quoteo(post=366759:date=Apr 20 2006, 11:43 AM:name=Tux User)--][div class=\'quotetop\']QUOTE(Tux User @ Apr 20 2006, 11:43 AM) [snapback]366759[/snapback][/div][div class=\'quotemain\'][!--quotec--]
By formatting i mean "Justifying a mail"

e.g
name city Number
xxxxxx xxx xxxxxx
xxxxxx xxx xxxxxx
xxxxxx xxx xxxxxx
xxxxxx xxx xxxxxx
xxxxxx xxx xxxxxx
xxxxxx xxx xxxxxx
This is what i mean by indentation.

Any solutions??
[/quote]

I think by definition it is not possible. If you are sending plain text, you have no control over what font the end user will use. You could format your table using spaces so that it would look right if viewed using a proportional font (eg courier) but it wouldn't look right if the user used a non-proportional font. (With non-proportional fonts, the charachters have different widths depending on what it is, so l is narrow and M is wide, but the widths differ with different fonts.)

Rob
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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