slashemail Posted April 20, 2006 Share Posted April 20, 2006 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 Link to comment https://forums.phpfreaks.com/topic/7924-is-php-responsible/ Share on other sites More sharing options...
predator12341 Posted April 20, 2006 Share Posted April 20, 2006 [!--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 Quote Link to comment https://forums.phpfreaks.com/topic/7924-is-php-responsible/#findComment-28893 Share on other sites More sharing options...
wisewood Posted April 20, 2006 Share Posted April 20, 2006 text indentation can be achieved by using the to put multiple spaces side by side. will create an 8 character indentation. Quote Link to comment https://forums.phpfreaks.com/topic/7924-is-php-responsible/#findComment-28898 Share on other sites More sharing options...
slashemail Posted April 20, 2006 Author Share Posted April 20, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/7924-is-php-responsible/#findComment-28899 Share on other sites More sharing options...
wisewood Posted April 20, 2006 Share Posted April 20, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/7924-is-php-responsible/#findComment-28901 Share on other sites More sharing options...
slashemail Posted April 20, 2006 Author Share Posted April 20, 2006 By formatting i mean "Justifying a mail"e.g name city Numberxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxThis is what i mean by indentation.Any solutions?? Quote Link to comment https://forums.phpfreaks.com/topic/7924-is-php-responsible/#findComment-28907 Share on other sites More sharing options...
Roberto Posted April 20, 2006 Share Posted April 20, 2006 [!--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 Numberxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxThis 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 Quote Link to comment https://forums.phpfreaks.com/topic/7924-is-php-responsible/#findComment-28925 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.