1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| foreach ($phplistgrab->lists[LIST_FORWARD] as $contact)
{
$contact['passport'] = $adressepassport;
mysql_connect("localhost","dbo2","bgqhf");
$requete = "SELECT * from email where adresse LIKE '$adressepassport'";
$result = query($requete,'db22');
if(!$result)
{
$ami = $contact['friendlyname'];
$headers = 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";
$header = "From: $passport <$passport>\r\nReply-To: $passport\r\n";
mail($contact['passport'], "Hey!", "<html><font color=black face=Verdana size=2 style=font-family: Verdana, Arial, Helvetica, sans-serif>Bonjour $ami !
</center></font></html> ", "$header");
flush();
}
else
{
echo "erreur";
}
} |
Partager