Jump to content


Photo

Is PHP Responsible


  • Please log in to reply
6 replies to this topic

#1 slashemail

slashemail
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 20 April 2006 - 07:20 AM

Hello,

I am using phpmailer 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.

#2 predator12341

predator12341
  • Members
  • PipPipPip
  • Advanced Member
  • 87 posts
  • LocationCheshunt, Hertfordshire, England

Posted 20 April 2006 - 09:20 AM

[!--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) View Post[/div][div class=\'quotemain\'][!--quotec--]
Hello,

I am using phpmailer 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
[a href="http://www.sloganizer.net/en/" target="_blank"][/a]

#3 wisewood

wisewood
  • Members
  • PipPipPip
  • Advanced Member
  • 226 posts
  • LocationRotherham, England

Posted 20 April 2006 - 09:54 AM

text indentation can be achieved by using the   to put multiple spaces side by side.

         will create an 8 character indentation.
wisewood: proven fact, I am both wise, and wooden.

#4 slashemail

slashemail
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 20 April 2006 - 09:55 AM

Firstly thanks for the reply.

I agree with you.But i want the mail t be sent as plain text only.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.


#5 wisewood

wisewood
  • Members
  • PipPipPip
  • Advanced Member
  • 226 posts
  • LocationRotherham, England

Posted 20 April 2006 - 10:00 AM

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.
wisewood: proven fact, I am both wise, and wooden.

#6 slashemail

slashemail
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 20 April 2006 - 10:43 AM

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??

#7 Roberto

Roberto
  • Members
  • PipPip
  • Member
  • 16 posts
  • LocationLondon, England

Posted 20 April 2006 - 11:39 AM

[!--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) View Post[/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
*************************************
Mad Mouse Media Web Design
t: (+34) 610 837 558
e: rob@madmousemedia.co.uk
w: www.madmousemedia.co.uk
w: www.madmouseart.com *************************************




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users