Jump to content

HTML emails with images and css?


TeddyKiller

Recommended Posts

You'll need to define the MIMETYPE before the client would even think to parse sgml/css.

$header = "From: Foobar <[email protected]> " . "\r\n";
$header .= 'MIME-Version: 1.0' . "\n";
$header .= 'Content-type: text/html; charset=UTF-8' . "\r\n";

 

Then that should work.

Same difference..

How would I include the header in?

Would it simply be..

$header = "From: Foobar <[email protected]> " . "\r\n";
$header .= 'MIME-Version: 1.0' . "\n";
$header .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
$send = mail("To address", "Subject" , "My message.", "$header");

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.