Hi, Actual was this <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="" /> <meta name="keywords" content="" /> <title>Title</title> </head> <style type=&apstext/css&aps> ... Those code was example. On Wednesday 21 February 2007 06:39, Peter Lauri wrote: > If you are just using the code snippet below you will probably get problems > in Outlook and some other clients. This because you haven't set the proper > header. > > But I actually need to assume you did send with a more sophisticated > version. Otherwise KMAIL probably displayed it incorrectly as well. > > Best regards, > > Best regards, > Peter Lauri > > www.dwsasia.com - company web site > www.lauri.se - personal web site > www.carbonfree.org.uk - become Carbon Free > > > -----Original Message----- > From: Sancar Saran [mailto:sancar.saran@xxxxxxxxxx] > Sent: Wednesday, February 21, 2007 3:02 AM > To: ceo@xxxxxxxxx > Cc: php-general@xxxxxxxxxxxxx > Subject: Re: css in mail() > > Hi, > > On Wednesday 21 February 2007 01:14, Richard Lynch wrote: > > 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. > > Really ? > I did not have to much choices to check it, In KMAIL everything looks nice. > > Thanks for info > > > 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php