Re: css in mail()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, February 19, 2007 10:56 am, Sancar Saran wrote:
> On Monday 19 February 2007 17:03, Danial Rahmanzadeh wrote:
>> how can i use css with mail()?
>> thank u
>
> <?php
> $data ='';
> $fp = fopen ("site/themes/".$arrStat['theme']."/css/main.css","r");
> while (!feof($fp)) { $data.= fgets($fp, 16384); }
>
> $mail="
> <html>
> <head>
> 	<title>Title</title>
> 	<style>".$data."</style>
> </head>
> <body>
> Html content
> </body>
> </html>";
>
> mail('anrah@xxxxxxxxx', 'You are welcome', $mail);
> ?>

No.

This will only work on very badly-broken email clients.

I believe, in fact, that the only email client broken enough for this
to work is Outlook.

Though I suspect some very lame web-based email client might actually
work, come to think of it.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux