Well, two things, if you could help. In one of the examples given in the doc of your swiftmailer website, I have found you to suggest >
Code: Select all
$connection = new Swift_Sendmail_Connection;Code: Select all
$connection = new Swift_SMTP_Connection;Besides, the code of that part is now
Code: Select all
while ($row = mysql_fetch_assoc($result)) {
$recipients[] = array($row['name'].' '.$row['surname'], $row['email']);
$subj1 = '<p>Hi '.$row['name'].'</p>'.$themessage;
}Code: Select all
$tpl = array (
array ('foo' => 'First email'),
array ('foo' => 'second email'),
array ('foo' => 'third email')
);