Re: [PHP] CONTENT-type for sending HTML attachments

2007-03-19 Thread Richard Lynch
On Fri, March 16, 2007 10:16 am, Angelo Zanetti wrote:
 Im using the HTML Mime Mail
 http://www.phpguru.org/static/mime.mail.html class from phpguru.org.
 Anyway I've written a few scripts that use the class to attach files
 to
 it. These files are HTML reports but Im not sure what MIME
 content-type
 to use.

 The content type I use to for the attachments is text/html. But Im not
 sure that the content type for the email itself should be plain/text
 as
 this just displays the HTML attachment as garbage in the body text.

 Please could anyone advise, what the content type should be.

I would hazard a guest that is should be text/html, if you are sending
html enhanced (cough, cough) email...

Hopefully you realize that doing this drastically reduces the number
of people who will actually get the email, as the spammers all use
html enhanced email, so the spam filters all penalize for it.

And, of course, some of us use mail clients that won't display html
email unless we click a couple extra times, since html enhanced email
is a blatant security hole waiting to be exploited.

So even if the email gets to my Inbox, the odds that I'll bother to
read it are much much worse.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



[PHP] CONTENT-type for sending HTML attachments

2007-03-16 Thread Angelo Zanetti

Hi guys.

Im using the HTML Mime Mail 
http://www.phpguru.org/static/mime.mail.html class from phpguru.org. 
Anyway I've written a few scripts that use the class to attach files to 
it. These files are HTML reports but Im not sure what MIME content-type 
to use.


The content type I use to for the attachments is text/html. But Im not 
sure that the content type for the email itself should be plain/text as 
this just displays the HTML attachment as garbage in the body text.


Please could anyone advise, what the content type should be.

Thanks,

Kind regards
Angelo

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



Re: [PHP] CONTENT-type for sending HTML attachments

2007-03-16 Thread Tijnema !

On 3/16/07, Angelo Zanetti [EMAIL PROTECTED] wrote:

Hi guys.

Im using the HTML Mime Mail
http://www.phpguru.org/static/mime.mail.html class from phpguru.org.
Anyway I've written a few scripts that use the class to attach files to
it. These files are HTML reports but Im not sure what MIME content-type
to use.

The content type I use to for the attachments is text/html. But Im not
sure that the content type for the email itself should be plain/text as
this just displays the HTML attachment as garbage in the body text.

Please could anyone advise, what the content type should be.

Thanks,

Kind regards
Angelo


AFAIK html has the text/html mime-type.

Tijnema


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