Jump to content

Archived

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

slashemail

Is PHP Responsible

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
text indentation can be achieved by using the   to put multiple spaces side by side.

         will create an 8 character indentation.

Share this post


Link to post
Share on other sites
Firstly thanks for the reply.

I agree with you.But i want the mail t be sent as plain text [b]only[/b].Its a requirement and i cant say No.

So i have to work a way around this problem of formatting plain text emails.


Comments appericiated.

Share this post


Link to post
Share on other sites
When you say you want to "format plain text emails" what exactly do you want to do?

Plain Text is exactly as the name would suggest... Plain.

Share this post


Link to post
Share on other sites
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??

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

×

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.