I tutaj zaczynają się klocki.
Obrazki są wrzucone na moim serwerze i jest pełna ścieżka do nich dokładnie tak jak podałeś
background: url("http://TwojSerwer.pl/img/blabla.jpg")
Co do kodowania, jest wrzucone na stronie ISO-8859-2 i to samo w e-mailu.
Ogólnie cała obsługa mailera jest w ten sposób robiona
<?php
require_once('libraries/class.phpmailer.php');
$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "xxxx"; // SMTP server
$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
$mail->SMTPAuth = false; // enable SMTP authentication
$mail->Host = "xxxx"; // sets the SMTP server
$mail->Port = 25; // set the SMTP port for the GMAIL server
$mail->Username = "xxxxx"; // SMTP account username
$mail->Password = "xxxx "; // SMTP account password
$mail->charset = 'ISO-8859-2';
$mail->ContentType = 'text/plain';
$mail->Encoding = 'base64';
#$mail->from = 'xxx';
$mail->fromName = 'xxx';
$mail->SetFrom('xxx', 'xxx');
if($_SESSION['szablon']['dzial'] == 'g')
{
$mail->AddAddress('xxx', 'yyy');
$mail->AddReplyTo('xxx', 'yyy');
}elseif($_SESSION['szablon']['dzial'] == 0)
{
$re = $this->engine->db->queryf('SELECT `email` FROM `%t` WHERE `id`>%u AND `id`<%u', 'newsletter', $od, $do);
while($r = $re->fetch())
{
# $mail->AddAddress($r['email'], $r['email']);
}
}
else
{
$re = $this->engine->db->queryf('SELECT `email` FROM `%t` WHERE `id`>%u AND `id`<%u', 'newsletter', $od, $do);
while($r = $re->fetch())
{
# $mail->AddAddress($r['email'], $r['email']);
}
}
$wiadomosc .= '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
</head>
<body>';
$wiadomosc .= $_SESSION['szablon']['title'];
$wiadomosc .= '</body></html>';
$mail->Subject = $_SESSION['szablon']['title'];
$mail->MsgHTML($wiadomosc );
$mail->Send(); ?>