hi first post.
I'm trying to use the mail() function in php to send an html email. The mail script is basically:
<?php
$to = "info@example.com";
$subject = "Subject";
$body = "<h1 id='bodyheadline'>body</h1>";
$body .= "<p class='bodytext'>more body</p>";
$header = "From: $email\n";
$header .= "Reply-To: $email\n";
$header .= "Content-type: text/html\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
mail($to, $subject, $body, $header);
?>
Pretty straight forward. Is it possible to include or link to a stylesheet with the classes and id's used in the $body, or do styles have to be inline. I've tried include() require_once() and even break out of <?php ?> and using <link> tags. Unfortunately I can't seem to get the style's to carry into the sent email.
Thanks