Hii guys,
i am generating a php mail like this
[PHP]$message = '
<html>
<head>
<style type="text/css" media="all">@im port "/themes/admitcard.css"; </style>
<title>Birthd ay Reminders for August</title>
</head>
<body>
<div id="textcontent ">
)<img src="/logo.jpg"></img></h3>
<table align="center" width="100%" border="1" cellspacing="2" cellpadding="2" id="img1">
<tr>
<td align="left">Re f=' . $ID . '</td>
</tr>
</table>
<table align="center" width="100%" border="1" cellspacing="2" cellpadding="2" id="img1">
<tr row span="20">
<td>Name</td>
<td>:</td>
<td><b>' . $name . '</b></td>
<td colspan=2><img src="http://dsfsdfsdf/pic.php?Id=528" ></img></td>
</tr>
<tr>
<td>Address</td>
<td>:</td>
<td><p>'. $address .'</p></td>
</tr>
</table>
</body>
</html> ';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
//$headers .= 'To:'. $email . "\r\n";
$headers .= 'From: webmaster <webmaster@test .com>' . "\r\n";
$headers .= 'Cc: test@tst.com' . "\r\n";
// Mail it
$ok=mail($to, $subject, $message, $headers);
[/PHP]
this mail is getting delivered properly.but i want to apply css to this html..the stylesheet line that i have added is taking no effect..Can any one help.
thanks,
Pradeep
i am generating a php mail like this
[PHP]$message = '
<html>
<head>
<style type="text/css" media="all">@im port "/themes/admitcard.css"; </style>
<title>Birthd ay Reminders for August</title>
</head>
<body>
<div id="textcontent ">
)<img src="/logo.jpg"></img></h3>
<table align="center" width="100%" border="1" cellspacing="2" cellpadding="2" id="img1">
<tr>
<td align="left">Re f=' . $ID . '</td>
</tr>
</table>
<table align="center" width="100%" border="1" cellspacing="2" cellpadding="2" id="img1">
<tr row span="20">
<td>Name</td>
<td>:</td>
<td><b>' . $name . '</b></td>
<td colspan=2><img src="http://dsfsdfsdf/pic.php?Id=528" ></img></td>
</tr>
<tr>
<td>Address</td>
<td>:</td>
<td><p>'. $address .'</p></td>
</tr>
</table>
</body>
</html> ';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
//$headers .= 'To:'. $email . "\r\n";
$headers .= 'From: webmaster <webmaster@test .com>' . "\r\n";
$headers .= 'Cc: test@tst.com' . "\r\n";
// Mail it
$ok=mail($to, $subject, $message, $headers);
[/PHP]
this mail is getting delivered properly.but i want to apply css to this html..the stylesheet line that i have added is taking no effect..Can any one help.
thanks,
Pradeep
Comment