Re: css in mail()
| From: | Sancar Saran | Date: | Mon, 19 Feb 2007 16:56:31 +0000 |
| Subject: | Re: css in mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249028@lists.php.net to get a copy of this message | ||
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@gmail.com', 'You are welcome', $mail);
?>