Hi, I'm testing to send emails in html format using php mail(). So I set header as follows, $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; But style sheets are not loading ... Pls help !! Do I need to set text/css ??
hey there easywab, instead of struggling with the mail function, while don't you give PHPMailer a try? http://phpmailer.codeworxtech.com/ Might be the best option
Easier solution, rather than grappling with PHPMailer. Open this: http://danltn.com/bin/o0q.phps Save that to 'mail.php'; Then: <?php require_once 'mail.php'; $mail = new email; $html_mail = true; $to = 'them@them.com'; $subject = 'Subject'; $message = 'Message'; $you = 'your@email.com'; $mail->html_mail($html_mail)->to($to)->subject($subject)->message($message)->from($you)->send(); PHP: