Re: [PHP-DB] Plain-text or HTML?

2006-03-13 Thread JeRRy
   


I have created several successful HTML and text based emails..  Its a 
secret called multipart MIME.The essence of email really. Just as an 
attachment is embedded into   the same file as the images, html part and 
textual part.  All you have to do is using 2 seperate boundaries, write out 
a textual   [no HTML formatting, etc, use correct newlines etc] version out and 
  then   using same content write it into a HTML template version that can   
include formatting etc..Ensure all images used are also encoded and added 
as multipart MIME   segments.All this can be generally easily done via 
some email clients   themselves.   For example Microsoft's Outlook Express does 
multipart HTML/Text   emails.If you just go and create a new email in 
Outlook and type out your   content in HTML format [ensure you've selected 
Format-Rich Text HTML]Then save it and grab the message source, you will 
clearly see the   boundaries it has defined for the alternative MIME part
 [the text/html]   and the text/plain part.  Simply reformat the text/plain 
part a bit if you want.  Voila.. in most cases thats ready to rumble .. use 
it as an example of   how to work it into your own email generation functions 
in php.  Works a charm for me ;-)  Good luck, let me know how you go!  

 

---

 

Hi,

Thanks for that, now I understand how it works.  Seen the code, now I will play 
with it a bit.  Did a few tests and found on some cases the following:

1- Yahoo! Mail is tricky to have HTML emails for, some emails, unless carefully 
designed, come out dodgy in formation when you view the email in Yahoo! Mail 
Web Format.

2- Hotmail seems to like HTML and has a better understanding of how to manage 
the emails in their Mail Live! Program

3- Outlook loves HTML and uses it cutely

4- Another web based email at www.tasmail.com formats funny and opens the html 
email in an attachment, does not always display good.

5- www.rock.com webmail dislikes HTML even though they claim HTML emails are 
supported.

So the end result is some like some don't, some like to a degree and some 
don't.  There does not seem to be a good solution even with formatting in HTML 
format.  I'm just wondering how companies like Yahoo! and Hotmail send theirs 
out, tried viewing their source but sometimes their tricky.  And being an owner 
of the servers they have more power over how emails are sent and displayed.

Sure they have a source email but they can shade out reply, add more code 
somewhere hidden etc away from the source area.  But their emails seem to come 
out fine, even when you redirect the emails to a email that does not like HTML 
a real lot they seem to display as they should.

I know of a few programs on the net for plain-text to html emails, but the free 
ones are not a good solution, not sure of the paid ones.

J


Re: [PHP-DB] Plain-text or HTML?

2006-03-13 Thread Bastien Koert

try phpmailer from http://phpmailer.sourceforge.net



From: JeRRy [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Plain-text or HTML?
Date: Tue, 14 Mar 2006 10:25:18 +1100 (EST)




I have created several successful HTML and text based emails..  Its a 
secret called multipart MIME.The essence of email really. Just as an 
attachment is embedded into   the same file as the images, html part and 
textual part.  All you have to do is using 2 seperate boundaries, write 
out a textual   [no HTML formatting, etc, use correct newlines etc] version 
out and   then   using same content write it into a HTML template version 
that can   include formatting etc..Ensure all images used are also 
encoded and added as multipart MIME   segments.All this can be 
generally easily done via some email clients   themselves.   For example 
Microsoft's Outlook Express does multipart HTML/Text   emails.If you 
just go and create a new email in Outlook and type out your   content in 
HTML format [ensure you've selected Format-Rich Text HTML]Then save it 
and grab the message source, you will clearly see the   boundaries it has 
defined for the alternative MIME part
 [the text/html]   and the text/plain part.  Simply reformat the 
text/plain part a bit if you want.  Voila.. in most cases thats ready 
to rumble .. use it as an example of   how to work it into your own email 
generation functions in php.  Works a charm for me ;-)  Good luck, 
let me know how you go!




---



Hi,

Thanks for that, now I understand how it works.  Seen the code, now I will 
play with it a bit.  Did a few tests and found on some cases the following:


1- Yahoo! Mail is tricky to have HTML emails for, some emails, unless 
carefully designed, come out dodgy in formation when you view the email in 
Yahoo! Mail Web Format.


2- Hotmail seems to like HTML and has a better understanding of how to 
manage the emails in their Mail Live! Program


3- Outlook loves HTML and uses it cutely

4- Another web based email at www.tasmail.com formats funny and opens the 
html email in an attachment, does not always display good.


5- www.rock.com webmail dislikes HTML even though they claim HTML emails 
are supported.


So the end result is some like some don't, some like to a degree and some 
don't.  There does not seem to be a good solution even with formatting in 
HTML format.  I'm just wondering how companies like Yahoo! and Hotmail send 
theirs out, tried viewing their source but sometimes their tricky.  And 
being an owner of the servers they have more power over how emails are sent 
and displayed.


Sure they have a source email but they can shade out reply, add more code 
somewhere hidden etc away from the source area.  But their emails seem to 
come out fine, even when you redirect the emails to a email that does not 
like HTML a real lot they seem to display as they should.


I know of a few programs on the net for plain-text to html emails, but the 
free ones are not a good solution, not sure of the paid ones.


J


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



[PHP-DB] Plain-text or HTML?

2006-03-12 Thread JeRRy
Hello all,
   
  People on this list, is your email client plain-text or HTML supported?
   
  I think most email clients come with HTML support, but over the time I have 
done HTML emails they flop out and not display correctly.  Is there a reason 
for this?  Is there a way to send out HTML emails from a PHP script to email 
clients that will display correctly?
   
  Problem I tend to have is at times I write the HTML, test it on a webpage.  
Send it to my email clients shows well but on others like Yahoo! etc it shows 
crap.  Than at times Yahoo! shows fine and other clients crap!  Is there 
tag/codes needed to sort it out?
   
  Or is it just a tricky thing?  Yahoo!, Hotmail is HTML based WWW clients so I 
guess you need to get your tables spot on that matches theirs to align 
correctly?  Just need input on this!  Thanks!
   
  J


[PHP-DB] Plain-text or HTML?

2006-03-12 Thread JeRRy
Hello all,
   
  People on this list, is your email client plain-text or HTML supported?
   
  I think most email clients come with HTML support, but over the time I have 
done HTML emails they flop out and not display correctly.  Is there a reason 
for this?  Is there a way to send out HTML emails from a PHP script to email 
clients that will display correctly?
   
  Problem I tend to have is at times I write the HTML, test it on a webpage.  
Send it to my email clients shows well but on others like Yahoo! etc it shows 
crap.  Than at times Yahoo! shows fine and other clients crap!  Is there 
tag/codes needed to sort it out?
   
  Or is it just a tricky thing?  Yahoo!, Hotmail is HTML based WWW clients so I 
guess you need to get your tables spot on that matches theirs to align 
correctly?  Just need input on this!  Thanks!
   
  J


Re: [PHP-DB] Plain-text or HTML?

2006-03-12 Thread Julien Bonastre

I have created several successful HTML and text based emails..


Its a secret called multipart MIME.

The essence of email really. Just as an attachment is embedded into 
the same file as the images, html part and textual part.



All you have to do is using 2 seperate boundaries, write out a textual 
[no HTML formatting, etc, use correct newlines etc] version out and then 
using same content write it into a HTML template version that can 
include formatting etc..


Ensure all images used are also encoded and added as multipart MIME 
segments.




All this can be generally easily done via some email clients themselves. 
For example Microsoft's Outlook Express does multipart HTML/Text emails.


If you just go and create a new email in Outlook and type out your 
content in HTML format [ensure you've selected Format-Rich Text HTML]


Then save it and grab the message source, you will clearly see the 
boundaries it has defined for the alternative MIME part [the text/html] 
and the text/plain part.



Simply reformat the text/plain part a bit if you want.


Voila.. in most cases thats ready to rumble .. use it as an example of 
how to work it into your own email generation functions in php.



Works a charm for me ;-)


Good luck, let me know how you go!

---oOo--- Allowing users to execute CGI scripts in any directory should 
only be considered if: ... a.. You have no users, and nobody ever visits 
your server. ... Extracted Quote: Security Tips - Apache HTTP 
Server ---oOo--- --oOo---oOo-- Julien Bonastre 
[The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494 
[EMAIL PROTECTED] 
www.the-spectrum.org --oOo---oOo-- 
- Original Message - 
From: JeRRy [EMAIL PROTECTED]

To: php-db@lists.php.net
Sent: Monday, March 13, 2006 2:25 PM
Subject: [PHP-DB] Plain-text or HTML?



Hello all,

 People on this list, is your email client plain-text or HTML 
supported?


 I think most email clients come with HTML support, but over the time 
I have done HTML emails they flop out and not display correctly.  Is 
there a reason for this?  Is there a way to send out HTML emails from 
a PHP script to email clients that will display correctly?


 Problem I tend to have is at times I write the HTML, test it on a 
webpage.  Send it to my email clients shows well but on others like 
Yahoo! etc it shows crap.  Than at times Yahoo! shows fine and other 
clients crap!  Is there tag/codes needed to sort it out?


 Or is it just a tricky thing?  Yahoo!, Hotmail is HTML based WWW 
clients so I guess you need to get your tables spot on that matches 
theirs to align correctly?  Just need input on this!  Thanks!


 J







No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.1.384 / Virus Database: 268.2.1/279 - Release Date: 
10/03/2006




--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.384 / Virus Database: 268.2.1/279 - Release Date: 10/03/2006

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