Re: [PHP] HTML plain text in Outlook 2007

2010-02-14 Thread Skip Evans

Ashley Sheridan wrote:
That last reason could be why your email is failing! HTML email is the 
one place where it is actually better to code the old way with tables 
for markup, font tags, and very little (if any) CSS. If you do use any 
CSS, it's best left inline as well, as some email clients strip out 
anything within the head tags of your email.


Yes, that's exactly what I took away from the conversation. 
HTML emails should be coded using the old way.


Skip


--

Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com

Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML plain text in Outlook 2007

2010-02-12 Thread Skip Evans

Hey Guys,

Thanks for all the info on this. Sorry for the late reply, but 
I got sidetracked writing the module that will send out all 
these nasty emails.


I do have the text going on top, and I think I said, looks 
perfect in Evolution and Thunderbird in both text and HTML.


I also read about MS ripping out the IE renderer and going 
back in time basically.


I thought the solution of converting a Word document into HTML 
with open office is interesting. I'll run that by the client 
and test it out.


Bottom line is, HTML is just a total pain, and yes, the email 
the client created in HTML using the most update to date CSS 
and HTML!


Thanks!

Skip

Robert Cummings wrote:

Ashley Sheridan wrote:

On Thu, 2010-02-04 at 13:44 -0500, Robert Cummings wrote:


What about signing yourself up to some newsletters to see how they do
it?

Looking at the ones I get from Facebook as an example, they use the
boundary codes you mentioned, and I can't see anything particularly
special that's been added. What order are you sending the two message
parts by the way? I think the traditional way is to send the plain/text
part first, so that UA's that don't understand or support multipart
messages only use the first one. As you mentioned that you're seeing
HTML code at the top, I'd hazard a guess that you're sending the HTML
first?
The problem is most likely NOT his email structure, but the fact that 
Microsoft in all their lock-in, make things difficult, non standard, 
monopolistic philosophy chose to switch out the IE HTML renderer 
(which was getting pretty decent with IE7 and IE8) with the Office 
HTML renderer... so now basic things like CSS padding of something as 
simple as a p tag is not possible. You now need to use margins 
instead. The full list of supported attributes / CSS can be found here:


 http://msdn.microsoft.com/en-us/library/aa338201.aspx

Obviously creating HTML emails was getting too easy (like it is with 
Thunderbird). Of course... I guess it could be as bad as Google 
stripping out the stylesheets entirely when viewing HTML content 
which forces you to put the styles on the tags themselves.


... actually I'm not sure what's worse... at least you can use 
standard styles with Google's gmail. Either way... making nice 
looking HTML emails that work across Outlook, Thunderbird, Gmail, 
Yahoo, and Hotmail is a pain in the ass.


Cheers,
Rob.



If he's getting HTML output at the top of the email, I would think that
did suggest that MS Word didn't like the structure. Making HTML emails
is now such a difficult job, as the email clients rendering engines tend
to not get updated as often as browsers, and there doesn't seem to be
any effort in bringing the rendering of the email clients together.

Whenever I create these emails I try to make sure I try no to get too
creative in the design, and use not only CSS styles, but properties of
the HTML tags themselves. It means I end up writing the CSS essentially
twice and backing it up with old deprecated HTML attributes, but it
usually does the trick.

Is there any effort by some standards group that email clients could
benefit from?


I think I skipped over some relevant information in the original post :)

Still... as you've said... email HTML sucks... and MS made it worse.

Cheers,
Rob.


--

Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com

Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML plain text in Outlook 2007

2010-02-12 Thread Ashley Sheridan
On Fri, 2010-02-12 at 19:03 -0600, Skip Evans wrote:

 Hey Guys,
 
 Thanks for all the info on this. Sorry for the late reply, but 
 I got sidetracked writing the module that will send out all 
 these nasty emails.
 
 I do have the text going on top, and I think I said, looks 
 perfect in Evolution and Thunderbird in both text and HTML.
 
 I also read about MS ripping out the IE renderer and going 
 back in time basically.
 
 I thought the solution of converting a Word document into HTML 
 with open office is interesting. I'll run that by the client 
 and test it out.
 
 Bottom line is, HTML is just a total pain, and yes, the email 
 the client created in HTML using the most update to date CSS 
 and HTML!
 
 Thanks!
 
 Skip
 
 Robert Cummings wrote:
  Ashley Sheridan wrote:
  On Thu, 2010-02-04 at 13:44 -0500, Robert Cummings wrote:
 
  What about signing yourself up to some newsletters to see how they do
  it?
 
  Looking at the ones I get from Facebook as an example, they use the
  boundary codes you mentioned, and I can't see anything particularly
  special that's been added. What order are you sending the two message
  parts by the way? I think the traditional way is to send the plain/text
  part first, so that UA's that don't understand or support multipart
  messages only use the first one. As you mentioned that you're seeing
  HTML code at the top, I'd hazard a guess that you're sending the HTML
  first?
  The problem is most likely NOT his email structure, but the fact that 
  Microsoft in all their lock-in, make things difficult, non standard, 
  monopolistic philosophy chose to switch out the IE HTML renderer 
  (which was getting pretty decent with IE7 and IE8) with the Office 
  HTML renderer... so now basic things like CSS padding of something as 
  simple as a p tag is not possible. You now need to use margins 
  instead. The full list of supported attributes / CSS can be found here:
 
   http://msdn.microsoft.com/en-us/library/aa338201.aspx
 
  Obviously creating HTML emails was getting too easy (like it is with 
  Thunderbird). Of course... I guess it could be as bad as Google 
  stripping out the stylesheets entirely when viewing HTML content 
  which forces you to put the styles on the tags themselves.
 
  ... actually I'm not sure what's worse... at least you can use 
  standard styles with Google's gmail. Either way... making nice 
  looking HTML emails that work across Outlook, Thunderbird, Gmail, 
  Yahoo, and Hotmail is a pain in the ass.
 
  Cheers,
  Rob.
 
 
  If he's getting HTML output at the top of the email, I would think that
  did suggest that MS Word didn't like the structure. Making HTML emails
  is now such a difficult job, as the email clients rendering engines tend
  to not get updated as often as browsers, and there doesn't seem to be
  any effort in bringing the rendering of the email clients together.
 
  Whenever I create these emails I try to make sure I try no to get too
  creative in the design, and use not only CSS styles, but properties of
  the HTML tags themselves. It means I end up writing the CSS essentially
  twice and backing it up with old deprecated HTML attributes, but it
  usually does the trick.
 
  Is there any effort by some standards group that email clients could
  benefit from?
  
  I think I skipped over some relevant information in the original post :)
  
  Still... as you've said... email HTML sucks... and MS made it worse.
  
  Cheers,
  Rob.
 
 -- 
 
 Skip Evans
 PenguinSites.com, LLC
 503 S Baldwin St, #1
 Madison WI 53703
 608.250.2720
 http://penguinsites.com
 
 Those of you who believe in
 telekinesis, raise my hand.
   -- Kurt Vonnegut
 


That last reason could be why your email is failing! HTML email is the
one place where it is actually better to code the old way with tables
for markup, font tags, and very little (if any) CSS. If you do use any
CSS, it's best left inline as well, as some email clients strip out
anything within the head tags of your email.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] HTML plain text in Outlook 2007

2010-02-12 Thread Michael A. Peters

Ashley Sheridan wrote:




That last reason could be why your email is failing! HTML email is the
one place where it is actually better to code the old way with tables
for markup, font tags, and very little (if any) CSS. If you do use any
CSS, it's best left inline as well, as some email clients strip out
anything within the head tags of your email.


Do e-mail clients handle RTF?
That would seem a better way to do fancy styled e-mail to me than to use 
html tags in an e-mail.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML plain text in Outlook 2007

2010-02-12 Thread Robert Cummings

Michael A. Peters wrote:

Ashley Sheridan wrote:



That last reason could be why your email is failing! HTML email is the
one place where it is actually better to code the old way with tables
for markup, font tags, and very little (if any) CSS. If you do use any
CSS, it's best left inline as well, as some email clients strip out
anything within the head tags of your email.


Do e-mail clients handle RTF?
That would seem a better way to do fancy styled e-mail to me than to use 
html tags in an e-mail.


aside
em*tongue in cheek*/em I do HTML emails for the semantic tags!!
/aside

:B

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML plain text in Outlook 2007

2010-02-05 Thread Richard Quadling
On 4 February 2010 16:44, Skip Evans s...@bigskypenguin.com wrote:
 Hey all,

 First, let me say thanks for all the advice on Magento, and especially to
 Ryan who has used the beast and gave some great advice on skinning, links to
 some good docs and a book just for my designer. We'll be using and I'm
 looking forward to learning it.

 But anyway...

 I'm doing some maintenance work on a system that sends an email message
 using the multi-part boundaries to include both a plain text version and an
 HTML version of an email.

 I've read up on this before, but never actually done it. So implementing the
 code was not a big issue, and in fact it works perfectly when tested on my
 Ubuntu machine using Thunderbird to test the HTML and Evolution to test the
 plain text version. In fact, I can switch formats on both of these and all
 looks great.

 Enter Microsoft (Insert opening of Bach's Toccata and Fugue in D minor to
 send chills up my readers' spines.)

 On Outlook 2007 in HTML mode it renders, how can I put this... half-assedly.
 In text mode the whole things a bust. There is the HTML code all stuffed up
 at the top, boundary codes are visible, just plain awful.

 Googling around I see articles from 2007 when that version of Outlook came
 out lamenting the fact that MS pulled the IE rendering engine from it and
 replaced it with MS Word's renderer to plug security holes expoitable via
 email.

 Does anyone have any experience with HTML  plain text multi-part messages
 and Outlook 2007, or any tips how I can get this working? Still Googling,
 but any tips would be greatly appreciated.

 Skip
 --
 
 Skip Evans
 PenguinSites.com, LLC
 503 S Baldwin St, #1
 Madison WI 53703
 608.250.2720
 http://penguinsites.com
 
 Those of you who believe in
 telekinesis, raise my hand.
  -- Kurt Vonnegut

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



I create HTML.Mime based emails in PHP with a plain text part which is
basically a cop out saying that they should upgrade.

The HTML part is a fax form. They print it out, add some stickers
relating to work carried out and then fax it back (or email it as a
TIFF or PDF if they have the skills/tech to do that).

I use Outlook 2003 (work) and GMail via Chrome (personal).

The form includes embedded images (essentially their logo as the forms
are passed to their clients) and have a PDF attached ( a report from
our systems about the email they are receiving).

All fairly simple.

1 - Plain Text - (Please upgrade)
2 - Alternative HTML
3 -  Embedded images
4 - Attachment

For this, I use RMail from phpguru.org (previously known as
html_mime_mail5) http://www.phpguru.org/static/Rmail

The HTML I used contains limited CSS and is table based.

I initially did it properly, or so I thought.

I'd used IE7/FireFox/Safari/Opera as a test of a proper HTML page with
CSS to produce a nice looking form. Scaled nicely, limited shrink,
etc.

Looked OK in Outlook 2003 too!

But when I sent them for approval to the line manager, who uses
Outlook 2007, well, let's just say he didn't understand the form at
all!

Even when I redid it with tables, I'd used thead, tfoot, tbody
(proper HTML at least). In O2K7? It renders in order - header, footer,
body. Great!

So, the HTML I ended up with REALLY looks like something from when I
was first learning HTML (I just worked it out as being 13 years ago!).

So, yes. The code is horribly old fashioned. But it works.


-- 
-
Richard Quadling
Standing on the shoulders of some very clever giants!
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML plain text in Outlook 2007

2010-02-05 Thread Phpster
Ire ently needed to do this for a client as well. I took their word  
doc and converted it to HTML with open office. This created a template  
that I just do some search and replace to fill in the criteria.


This has worked very well with outlook and hotmail and gmail.

Not sure if it will fit your needs, but it could be worth a try.

Bastien

Sent from my iPod

On Feb 5, 2010, at 5:32 AM, Richard Quadling  
rquadl...@googlemail.com wrote:



On 4 February 2010 16:44, Skip Evans s...@bigskypenguin.com wrote:

Hey all,

First, let me say thanks for all the advice on Magento, and  
especially to
Ryan who has used the beast and gave some great advice on skinning,  
links to
some good docs and a book just for my designer. We'll be using and  
I'm

looking forward to learning it.

But anyway...

I'm doing some maintenance work on a system that sends an email  
message
using the multi-part boundaries to include both a plain text  
version and an

HTML version of an email.

I've read up on this before, but never actually done it. So  
implementing the
code was not a big issue, and in fact it works perfectly when  
tested on my
Ubuntu machine using Thunderbird to test the HTML and Evolution to  
test the
plain text version. In fact, I can switch formats on both of these  
and all

looks great.

Enter Microsoft (Insert opening of Bach's Toccata and Fugue in D  
minor to

send chills up my readers' spines.)

On Outlook 2007 in HTML mode it renders, how can I put this... half- 
assedly.
In text mode the whole things a bust. There is the HTML code all  
stuffed up

at the top, boundary codes are visible, just plain awful.

Googling around I see articles from 2007 when that version of  
Outlook came
out lamenting the fact that MS pulled the IE rendering engine from  
it and
replaced it with MS Word's renderer to plug security holes  
expoitable via

email.

Does anyone have any experience with HTML  plain text multi-part  
messages
and Outlook 2007, or any tips how I can get this working? Still  
Googling,

but any tips would be greatly appreciated.

Skip
--

Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com

Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




I create HTML.Mime based emails in PHP with a plain text part which is
basically a cop out saying that they should upgrade.

The HTML part is a fax form. They print it out, add some stickers
relating to work carried out and then fax it back (or email it as a
TIFF or PDF if they have the skills/tech to do that).

I use Outlook 2003 (work) and GMail via Chrome (personal).

The form includes embedded images (essentially their logo as the forms
are passed to their clients) and have a PDF attached ( a report from
our systems about the email they are receiving).

All fairly simple.

1 - Plain Text - (Please upgrade)
2 - Alternative HTML
3 -  Embedded images
4 - Attachment

For this, I use RMail from phpguru.org (previously known as
html_mime_mail5) http://www.phpguru.org/static/Rmail

The HTML I used contains limited CSS and is table based.

I initially did it properly, or so I thought.

I'd used IE7/FireFox/Safari/Opera as a test of a proper HTML page with
CSS to produce a nice looking form. Scaled nicely, limited shrink,
etc.

Looked OK in Outlook 2003 too!

But when I sent them for approval to the line manager, who uses
Outlook 2007, well, let's just say he didn't understand the form at
all!

Even when I redid it with tables, I'd used thead, tfoot, tbody
(proper HTML at least). In O2K7? It renders in order - header, footer,
body. Great!

So, the HTML I ended up with REALLY looks like something from when I
was first learning HTML (I just worked it out as being 13 years ago!).

So, yes. The code is horribly old fashioned. But it works.


--
-
Richard Quadling
Standing on the shoulders of some very clever giants!
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML plain text in Outlook 2007

2010-02-05 Thread Ashley Sheridan
On Fri, 2010-02-05 at 08:03 -0500, Phpster wrote:

 Ire ently needed to do this for a client as well. I took their word  
 doc and converted it to HTML with open office. This created a template  
 that I just do some search and replace to fill in the criteria.
 
 This has worked very well with outlook and hotmail and gmail.
 
 Not sure if it will fit your needs, but it could be worth a try.
 
 Bastien
 
 Sent from my iPod
 
 On Feb 5, 2010, at 5:32 AM, Richard Quadling  
 rquadl...@googlemail.com wrote:
 
  On 4 February 2010 16:44, Skip Evans s...@bigskypenguin.com wrote:
  Hey all,
 
  First, let me say thanks for all the advice on Magento, and  
  especially to
  Ryan who has used the beast and gave some great advice on skinning,  
  links to
  some good docs and a book just for my designer. We'll be using and  
  I'm
  looking forward to learning it.
 
  But anyway...
 
  I'm doing some maintenance work on a system that sends an email  
  message
  using the multi-part boundaries to include both a plain text  
  version and an
  HTML version of an email.
 
  I've read up on this before, but never actually done it. So  
  implementing the
  code was not a big issue, and in fact it works perfectly when  
  tested on my
  Ubuntu machine using Thunderbird to test the HTML and Evolution to  
  test the
  plain text version. In fact, I can switch formats on both of these  
  and all
  looks great.
 
  Enter Microsoft (Insert opening of Bach's Toccata and Fugue in D  
  minor to
  send chills up my readers' spines.)
 
  On Outlook 2007 in HTML mode it renders, how can I put this... half- 
  assedly.
  In text mode the whole things a bust. There is the HTML code all  
  stuffed up
  at the top, boundary codes are visible, just plain awful.
 
  Googling around I see articles from 2007 when that version of  
  Outlook came
  out lamenting the fact that MS pulled the IE rendering engine from  
  it and
  replaced it with MS Word's renderer to plug security holes  
  expoitable via
  email.
 
  Does anyone have any experience with HTML  plain text multi-part  
  messages
  and Outlook 2007, or any tips how I can get this working? Still  
  Googling,
  but any tips would be greatly appreciated.
 
  Skip
  --
  
  Skip Evans
  PenguinSites.com, LLC
  503 S Baldwin St, #1
  Madison WI 53703
  608.250.2720
  http://penguinsites.com
  
  Those of you who believe in
  telekinesis, raise my hand.
   -- Kurt Vonnegut
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
  I create HTML.Mime based emails in PHP with a plain text part which is
  basically a cop out saying that they should upgrade.
 
  The HTML part is a fax form. They print it out, add some stickers
  relating to work carried out and then fax it back (or email it as a
  TIFF or PDF if they have the skills/tech to do that).
 
  I use Outlook 2003 (work) and GMail via Chrome (personal).
 
  The form includes embedded images (essentially their logo as the forms
  are passed to their clients) and have a PDF attached ( a report from
  our systems about the email they are receiving).
 
  All fairly simple.
 
  1 - Plain Text - (Please upgrade)
  2 - Alternative HTML
  3 -  Embedded images
  4 - Attachment
 
  For this, I use RMail from phpguru.org (previously known as
  html_mime_mail5) http://www.phpguru.org/static/Rmail
 
  The HTML I used contains limited CSS and is table based.
 
  I initially did it properly, or so I thought.
 
  I'd used IE7/FireFox/Safari/Opera as a test of a proper HTML page with
  CSS to produce a nice looking form. Scaled nicely, limited shrink,
  etc.
 
  Looked OK in Outlook 2003 too!
 
  But when I sent them for approval to the line manager, who uses
  Outlook 2007, well, let's just say he didn't understand the form at
  all!
 
  Even when I redid it with tables, I'd used thead, tfoot, tbody
  (proper HTML at least). In O2K7? It renders in order - header, footer,
  body. Great!
 
  So, the HTML I ended up with REALLY looks like something from when I
  was first learning HTML (I just worked it out as being 13 years ago!).
 
  So, yes. The code is horribly old fashioned. But it works.
 
 
  -- 
  -
  Richard Quadling
  Standing on the shoulders of some very clever giants!
  EE : http://www.experts-exchange.com/M_248814.html
  EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
  Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
  ZOPA : http://uk.zopa.com/member/RQuadling
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 


It's the testing part that takes the time though. You've got the email
clients that are only available on Windows, the ones that are only
available on Macs, those that are only around on Linux, and then those
that are only accessible online. There are companies that test emails

Re: [PHP] HTML plain text in Outlook 2007

2010-02-05 Thread Robert Cummings

Ashley Sheridan wrote:

On Thu, 2010-02-04 at 13:44 -0500, Robert Cummings wrote:


What about signing yourself up to some newsletters to see how they do
it?

Looking at the ones I get from Facebook as an example, they use the
boundary codes you mentioned, and I can't see anything particularly
special that's been added. What order are you sending the two message
parts by the way? I think the traditional way is to send the plain/text
part first, so that UA's that don't understand or support multipart
messages only use the first one. As you mentioned that you're seeing
HTML code at the top, I'd hazard a guess that you're sending the HTML
first?
The problem is most likely NOT his email structure, but the fact that 
Microsoft in all their lock-in, make things difficult, non standard, 
monopolistic philosophy chose to switch out the IE HTML renderer (which 
was getting pretty decent with IE7 and IE8) with the Office HTML 
renderer... so now basic things like CSS padding of something as simple 
as a p tag is not possible. You now need to use margins instead. The 
full list of supported attributes / CSS can be found here:


 http://msdn.microsoft.com/en-us/library/aa338201.aspx

Obviously creating HTML emails was getting too easy (like it is with 
Thunderbird). Of course... I guess it could be as bad as Google 
stripping out the stylesheets entirely when viewing HTML content which 
forces you to put the styles on the tags themselves.


... actually I'm not sure what's worse... at least you can use standard 
styles with Google's gmail. Either way... making nice looking HTML 
emails that work across Outlook, Thunderbird, Gmail, Yahoo, and Hotmail 
is a pain in the ass.


Cheers,
Rob.



If he's getting HTML output at the top of the email, I would think that
did suggest that MS Word didn't like the structure. Making HTML emails
is now such a difficult job, as the email clients rendering engines tend
to not get updated as often as browsers, and there doesn't seem to be
any effort in bringing the rendering of the email clients together.

Whenever I create these emails I try to make sure I try no to get too
creative in the design, and use not only CSS styles, but properties of
the HTML tags themselves. It means I end up writing the CSS essentially
twice and backing it up with old deprecated HTML attributes, but it
usually does the trick.

Is there any effort by some standards group that email clients could
benefit from?


I think I skipped over some relevant information in the original post :)

Still... as you've said... email HTML sucks... and MS made it worse.

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] HTML plain text in Outlook 2007

2010-02-04 Thread Skip Evans

Hey all,

First, let me say thanks for all the advice on Magento, and 
especially to Ryan who has used the beast and gave some great 
advice on skinning, links to some good docs and a book just 
for my designer. We'll be using and I'm looking forward to 
learning it.


But anyway...

I'm doing some maintenance work on a system that sends an 
email message using the multi-part boundaries to include both 
a plain text version and an HTML version of an email.


I've read up on this before, but never actually done it. So 
implementing the code was not a big issue, and in fact it 
works perfectly when tested on my Ubuntu machine using 
Thunderbird to test the HTML and Evolution to test the plain 
text version. In fact, I can switch formats on both of these 
and all looks great.


Enter Microsoft (Insert opening of Bach's Toccata and Fugue in 
D minor to send chills up my readers' spines.)


On Outlook 2007 in HTML mode it renders, how can I put this... 
half-assedly. In text mode the whole things a bust. There is 
the HTML code all stuffed up at the top, boundary codes are 
visible, just plain awful.


Googling around I see articles from 2007 when that version of 
Outlook came out lamenting the fact that MS pulled the IE 
rendering engine from it and replaced it with MS Word's 
renderer to plug security holes expoitable via email.


Does anyone have any experience with HTML  plain text 
multi-part messages and Outlook 2007, or any tips how I can 
get this working? Still Googling, but any tips would be 
greatly appreciated.


Skip
--

Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com

Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML plain text in Outlook 2007

2010-02-04 Thread Ashley Sheridan
On Thu, 2010-02-04 at 10:44 -0600, Skip Evans wrote:

 Hey all,
 
 First, let me say thanks for all the advice on Magento, and 
 especially to Ryan who has used the beast and gave some great 
 advice on skinning, links to some good docs and a book just 
 for my designer. We'll be using and I'm looking forward to 
 learning it.
 
 But anyway...
 
 I'm doing some maintenance work on a system that sends an 
 email message using the multi-part boundaries to include both 
 a plain text version and an HTML version of an email.
 
 I've read up on this before, but never actually done it. So 
 implementing the code was not a big issue, and in fact it 
 works perfectly when tested on my Ubuntu machine using 
 Thunderbird to test the HTML and Evolution to test the plain 
 text version. In fact, I can switch formats on both of these 
 and all looks great.
 
 Enter Microsoft (Insert opening of Bach's Toccata and Fugue in 
 D minor to send chills up my readers' spines.)
 
 On Outlook 2007 in HTML mode it renders, how can I put this... 
 half-assedly. In text mode the whole things a bust. There is 
 the HTML code all stuffed up at the top, boundary codes are 
 visible, just plain awful.
 
 Googling around I see articles from 2007 when that version of 
 Outlook came out lamenting the fact that MS pulled the IE 
 rendering engine from it and replaced it with MS Word's 
 renderer to plug security holes expoitable via email.
 
 Does anyone have any experience with HTML  plain text 
 multi-part messages and Outlook 2007, or any tips how I can 
 get this working? Still Googling, but any tips would be 
 greatly appreciated.
 
 Skip
 -- 
 
 Skip Evans
 PenguinSites.com, LLC
 503 S Baldwin St, #1
 Madison WI 53703
 608.250.2720
 http://penguinsites.com
 
 Those of you who believe in
 telekinesis, raise my hand.
   -- Kurt Vonnegut
 


What about signing yourself up to some newsletters to see how they do
it?

Looking at the ones I get from Facebook as an example, they use the
boundary codes you mentioned, and I can't see anything particularly
special that's been added. What order are you sending the two message
parts by the way? I think the traditional way is to send the plain/text
part first, so that UA's that don't understand or support multipart
messages only use the first one. As you mentioned that you're seeing
HTML code at the top, I'd hazard a guess that you're sending the HTML
first?

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] HTML plain text in Outlook 2007

2010-02-04 Thread Robert Cummings

Ashley Sheridan wrote:

On Thu, 2010-02-04 at 10:44 -0600, Skip Evans wrote:


Hey all,

First, let me say thanks for all the advice on Magento, and 
especially to Ryan who has used the beast and gave some great 
advice on skinning, links to some good docs and a book just 
for my designer. We'll be using and I'm looking forward to 
learning it.


But anyway...

I'm doing some maintenance work on a system that sends an 
email message using the multi-part boundaries to include both 
a plain text version and an HTML version of an email.


I've read up on this before, but never actually done it. So 
implementing the code was not a big issue, and in fact it 
works perfectly when tested on my Ubuntu machine using 
Thunderbird to test the HTML and Evolution to test the plain 
text version. In fact, I can switch formats on both of these 
and all looks great.


Enter Microsoft (Insert opening of Bach's Toccata and Fugue in 
D minor to send chills up my readers' spines.)


On Outlook 2007 in HTML mode it renders, how can I put this... 
half-assedly. In text mode the whole things a bust. There is 
the HTML code all stuffed up at the top, boundary codes are 
visible, just plain awful.


Googling around I see articles from 2007 when that version of 
Outlook came out lamenting the fact that MS pulled the IE 
rendering engine from it and replaced it with MS Word's 
renderer to plug security holes expoitable via email.


Does anyone have any experience with HTML  plain text 
multi-part messages and Outlook 2007, or any tips how I can 
get this working? Still Googling, but any tips would be 
greatly appreciated.


Skip
--

Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com

Those of you who believe in
telekinesis, raise my hand.
  -- Kurt Vonnegut




What about signing yourself up to some newsletters to see how they do
it?

Looking at the ones I get from Facebook as an example, they use the
boundary codes you mentioned, and I can't see anything particularly
special that's been added. What order are you sending the two message
parts by the way? I think the traditional way is to send the plain/text
part first, so that UA's that don't understand or support multipart
messages only use the first one. As you mentioned that you're seeing
HTML code at the top, I'd hazard a guess that you're sending the HTML
first?


The problem is most likely NOT his email structure, but the fact that 
Microsoft in all their lock-in, make things difficult, non standard, 
monopolistic philosophy chose to switch out the IE HTML renderer (which 
was getting pretty decent with IE7 and IE8) with the Office HTML 
renderer... so now basic things like CSS padding of something as simple 
as a p tag is not possible. You now need to use margins instead. The 
full list of supported attributes / CSS can be found here:


http://msdn.microsoft.com/en-us/library/aa338201.aspx

Obviously creating HTML emails was getting too easy (like it is with 
Thunderbird). Of course... I guess it could be as bad as Google 
stripping out the stylesheets entirely when viewing HTML content which 
forces you to put the styles on the tags themselves.


... actually I'm not sure what's worse... at least you can use standard 
styles with Google's gmail. Either way... making nice looking HTML 
emails that work across Outlook, Thunderbird, Gmail, Yahoo, and Hotmail 
is a pain in the ass.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HTML plain text in Outlook 2007

2010-02-04 Thread Ashley Sheridan
On Thu, 2010-02-04 at 13:44 -0500, Robert Cummings wrote:

 Ashley Sheridan wrote:
  On Thu, 2010-02-04 at 10:44 -0600, Skip Evans wrote:
  
  Hey all,
 
  First, let me say thanks for all the advice on Magento, and 
  especially to Ryan who has used the beast and gave some great 
  advice on skinning, links to some good docs and a book just 
  for my designer. We'll be using and I'm looking forward to 
  learning it.
 
  But anyway...
 
  I'm doing some maintenance work on a system that sends an 
  email message using the multi-part boundaries to include both 
  a plain text version and an HTML version of an email.
 
  I've read up on this before, but never actually done it. So 
  implementing the code was not a big issue, and in fact it 
  works perfectly when tested on my Ubuntu machine using 
  Thunderbird to test the HTML and Evolution to test the plain 
  text version. In fact, I can switch formats on both of these 
  and all looks great.
 
  Enter Microsoft (Insert opening of Bach's Toccata and Fugue in 
  D minor to send chills up my readers' spines.)
 
  On Outlook 2007 in HTML mode it renders, how can I put this... 
  half-assedly. In text mode the whole things a bust. There is 
  the HTML code all stuffed up at the top, boundary codes are 
  visible, just plain awful.
 
  Googling around I see articles from 2007 when that version of 
  Outlook came out lamenting the fact that MS pulled the IE 
  rendering engine from it and replaced it with MS Word's 
  renderer to plug security holes expoitable via email.
 
  Does anyone have any experience with HTML  plain text 
  multi-part messages and Outlook 2007, or any tips how I can 
  get this working? Still Googling, but any tips would be 
  greatly appreciated.
 
  Skip
  -- 
  
  Skip Evans
  PenguinSites.com, LLC
  503 S Baldwin St, #1
  Madison WI 53703
  608.250.2720
  http://penguinsites.com
  
  Those of you who believe in
  telekinesis, raise my hand.
-- Kurt Vonnegut
 
  
  
  What about signing yourself up to some newsletters to see how they do
  it?
  
  Looking at the ones I get from Facebook as an example, they use the
  boundary codes you mentioned, and I can't see anything particularly
  special that's been added. What order are you sending the two message
  parts by the way? I think the traditional way is to send the plain/text
  part first, so that UA's that don't understand or support multipart
  messages only use the first one. As you mentioned that you're seeing
  HTML code at the top, I'd hazard a guess that you're sending the HTML
  first?
 
 The problem is most likely NOT his email structure, but the fact that 
 Microsoft in all their lock-in, make things difficult, non standard, 
 monopolistic philosophy chose to switch out the IE HTML renderer (which 
 was getting pretty decent with IE7 and IE8) with the Office HTML 
 renderer... so now basic things like CSS padding of something as simple 
 as a p tag is not possible. You now need to use margins instead. The 
 full list of supported attributes / CSS can be found here:
 
  http://msdn.microsoft.com/en-us/library/aa338201.aspx
 
 Obviously creating HTML emails was getting too easy (like it is with 
 Thunderbird). Of course... I guess it could be as bad as Google 
 stripping out the stylesheets entirely when viewing HTML content which 
 forces you to put the styles on the tags themselves.
 
 ... actually I'm not sure what's worse... at least you can use standard 
 styles with Google's gmail. Either way... making nice looking HTML 
 emails that work across Outlook, Thunderbird, Gmail, Yahoo, and Hotmail 
 is a pain in the ass.
 
 Cheers,
 Rob.
 -- 
 http://www.interjinn.com
 Application and Templating Framework for PHP
 


If he's getting HTML output at the top of the email, I would think that
did suggest that MS Word didn't like the structure. Making HTML emails
is now such a difficult job, as the email clients rendering engines tend
to not get updated as often as browsers, and there doesn't seem to be
any effort in bringing the rendering of the email clients together.

Whenever I create these emails I try to make sure I try no to get too
creative in the design, and use not only CSS styles, but properties of
the HTML tags themselves. It means I end up writing the CSS essentially
twice and backing it up with old deprecated HTML attributes, but it
usually does the trick.

Is there any effort by some standards group that email clients could
benefit from?

Thanks,
Ash
http://www.ashleysheridan.co.uk




[PHP] HTML and text email

2002-10-08 Thread Chris Cook

Hello all,

I am trying to send out a multi-part email that is both text and HTML. The 
HTML is so I can embed links into the email. However, some of my clients 
have text-only email programs and all the HTML tags are visible. Is there a 
way that I can display HTML in the HTML enabled programs and text in the 
text-only email programs?

This is the header that I currently use.

$headers  = MIME-Version: 1.0\r\n;
$headers .= Content-type: text/html; charset=iso-8859-1\r\n;

Thanks for any help,
Chris


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTML and text email

2002-10-08 Thread Jason Wong

On Wednesday 09 October 2002 04:26, Chris Cook wrote:
 Hello all,

 I am trying to send out a multi-part email that is both text and HTML. The
 HTML is so I can embed links into the email. However, some of my clients
 have text-only email programs and all the HTML tags are visible. Is there a
 way that I can display HTML in the HTML enabled programs and text in the
 text-only email programs?

 This is the header that I currently use.

 $headers  = MIME-Version: 1.0\r\n;
 $headers .= Content-type: text/html; charset=iso-8859-1\r\n;

Goto www.phpclasses.org for some classes which does the job properly.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
The man who runs may fight again.
-- Menander
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] HTML 2 TEXT

2002-09-20 Thread Tim Haynes

Does anybody know of a class or a solution to converting an HTML page to a
text only page via PHP, but leaving in href links in and a certain degree of
formatting.

Cheers,

Tim



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTML 2 TEXT

2002-09-20 Thread SiTA WebMaster - VST

Try to remove all strings starting with  and ending with . Be sure 
not to remove A href ... /A's. Also you need to format line 
endings via \n or BR.

it might seem a little bit hard, but any other solution won't work 
rather than this.

Tim Haynes wrote:

Does anybody know of a class or a solution to converting an HTML page to a
text only page via PHP, but leaving in href links in and a certain degree of
formatting.

Cheers,

Tim




-- 
Vehbi Sinan Tunalioglu

*   email : [EMAIL PROTECTED]*
*   email : [EMAIL PROTECTED] *
*   email : [EMAIL PROTECTED]   *




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTML 2 TEXT

2002-09-20 Thread Justin French

There's a perfect example in the manual:
http://www.php.net/manual/en/function.preg-replace.php

HTH
Justin


on 20/09/02 9:16 PM, SiTA WebMaster - VST ([EMAIL PROTECTED]) wrote:

 Try to remove all strings starting with  and ending with . Be sure
 not to remove A href ... /A's. Also you need to format line
 endings via \n or BR.
 
 it might seem a little bit hard, but any other solution won't work
 rather than this.
 
 Tim Haynes wrote:
 
 Does anybody know of a class or a solution to converting an HTML page to a
 text only page via PHP, but leaving in href links in and a certain degree of
 formatting.
 
 Cheers,
 
 Tim
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTML 2 TEXT

2002-09-20 Thread nicos

strip_tags() is the easiest way to remove HTML tags. If he wants to replace
them, then he can use ereg_replace or preg_replace().

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Justin French [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 There's a perfect example in the manual:
 http://www.php.net/manual/en/function.preg-replace.php

 HTH
 Justin


 on 20/09/02 9:16 PM, SiTA WebMaster - VST ([EMAIL PROTECTED]) wrote:

  Try to remove all strings starting with  and ending with . Be sure
  not to remove A href ... /A's. Also you need to format line
  endings via \n or BR.
 
  it might seem a little bit hard, but any other solution won't work
  rather than this.
 
  Tim Haynes wrote:
 
  Does anybody know of a class or a solution to converting an HTML page
to a
  text only page via PHP, but leaving in href links in and a certain
degree of
  formatting.
 
  Cheers,
 
  Tim
 
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTML 2 TEXT

2002-09-20 Thread Sascha Cunz

 what he really needs is to completely remove script.../script, plus
 many many other examples.

 completely removing everything outside the body would be another option,
 perhaps saving the contents of title.../title

since a script might also occur inside the body, this would not really work 
out as meant.

Sascha

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] HTML and Text emails

2002-05-24 Thread Fearless Froggie

Howdy,

I've noticed that a number of online marketing
companies now advertise the ability to send a combined
HTML and Text email. The text email readers then
apparently display these as text, and html email
readers display these as html.

I know how to send an html email, and a text email.
But I can't figure out how you would send a combined
html and text email. 

Could anybody give me an idea of how this would work,
or perhaps point me the way to a tutorial or article?
The tutorial doesn't have to be specifically for PHP
-- once I know how it works, I can adapt it to PHP
myself!

Many Thanks!

Rita Mikusch

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTML and Text emails

2002-05-24 Thread Miguel Cruz

On Fri, 24 May 2002, Fearless Froggie wrote:
 I've noticed that a number of online marketing companies now advertise
 the ability to send a combined HTML and Text email. The text email
 readers then apparently display these as text, and html email readers
 display these as html.
 
 I know how to send an html email, and a text email. But I can't figure
 out how you would send a combined html and text email.
 
 Could anybody give me an idea of how this would work, or perhaps point
 me the way to a tutorial or article? The tutorial doesn't have to be
 specifically for PHP -- once I know how it works, I can adapt it to PHP
 myself!

Search the net for 'multipart/alternative'.

In a nutshell, you declare the message itself as MIME type 
multipart/alternative, then enclose parts with types like text/plain, 
text/html, text/enriched, what have you. The MUA decides which format it 
prefers.

Bear in mind that some fairly-common MUAs (either Lotus Notes or Groupwise 
springs to mind) can't decipher these messages and just show the whole 
thing. So make sure the text/plain part comes first.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] HTML to Text

2001-03-28 Thread Boget, Chris

I've looked various places (the PX, Hotscripts, etc) for
a function that will take a HTML file, strip out all of
the HTML and return just plain text.
Does anyone know if such an animal exists?  Does any
one have a copy of a function that does this?

Thanks for any help you can provide!

Chris



Re: [PHP] HTML to Text

2001-03-28 Thread Data Driven Design

Isn't that what strip_tags() does?

http://www.php.net/manual/en/function.strip-tags.php

Data Driven Design
P.O. Box 1084
Holly Hill, FL 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message - 
From: Boget, Chris [EMAIL PROTECTED]
To: Php (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 2:36 PM
Subject: [PHP] HTML to Text


 I've looked various places (the PX, Hotscripts, etc) for
 a function that will take a HTML file, strip out all of
 the HTML and return just plain text.
 Does anyone know if such an animal exists?  Does any
 one have a copy of a function that does this?
 
 Thanks for any help you can provide!
 
 Chris
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] HTML to Text

2001-03-28 Thread Boget, Chris

 Isn't that what strip_tags() does?
 http://www.php.net/manual/en/function.strip-tags.php

I looked all over the documentation and I did not see this
function.  Now I feel all stupid.  Especially when most of
my posts to the mailing list refer people to the docs... :p

Thanks.

Chris