Hallo zusammen,
momentan verschick ich meine html mails so:
Macht man das so ? Weil bei t-online wird mir nur ein weißer Bildschirm angzeigt, statts der mail. Bei hotmail und web.de geht alles.
mfg Jojo
momentan verschick ich meine html mails so:
PHP-Code:
include('Mail.php');
include('Mail/mime.php');
$text = 'Text version of email';
$html = '<html><body><img src="mailimg/header.jpg" /><br /><br />der text,</body></html>';
$crlf = "\n";
$hdrs = array(
'From' => 'yyy@xxx.de',
'Subject' => 'Your supject',
'Reply-To' => 'jxxx@yyy.de'
);
$mime = new Mail_mime($crlf);
$mime->setTXTBody($text);
$mime->setHTMLBody($html);
$mime->addHTMLImage("mailimg/header.jpg");
//do not ever try to call these lines in reverse order
$body = $mime->get();
$hdrs = $mime->headers($hdrs);
$mail =& Mail::factory('mail');
$mail->send('ppp@ddd.de', $hdrs, $body);
mfg Jojo
Kommentar