Poubelle UZER intelligente
Abonnez-vous à notre newsletter pour être tenu informé de nos actualités.

Poubelle UZER intelligente
Réservez votre Eugène pour faire partie des premières personnes à pouvoir commander Eugène au prix préférentiel de 79 €

Poubelle UZER intelligente
Pour un meilleur confort de lecture, veuillez tourner votre appareil au format paysage.

OK, j’ai compris


‘id’ => ‘f0cec325fc’,
’email’ => array(’email’=>$_POST[“InputEmail”]),
‘merge_vars’ => array(‘FNAME’=>$_POST[“InputPrenom”], ‘LNAME’=>$_POST[“InputNom”]),
‘double_optin’ => false,
‘update_existing’ => false,
‘replace_interests’ => false,
‘send_welcome’ => false,
));
if (array_key_exists(‘status’,$result)){
$status=”Erreur”;
if ($result[‘code’]==214){
$status = “Vous vous êtes déjà inscrit.”;
}
}
else {
$status=”Merci pour votre inscription”;
$mail = new PHPMailer;
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = ‘smtp.uzer.eu’; // Specify main and backup SMTP servers
$mail->CharSet = ‘UTF-8’;
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = ‘contact@uzer.eu’; // SMTP username
$mail->Password = ‘Beauzer2013’; // SMTP password
$mail->SMTPSecure = ‘tls’; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
$email = “contact@uzer.eu”;
$mail->setFrom($email, “UZER”,”UZER”);
$mail->addAddress($_POST[“InputEmail”], $_POST[“InputPrenom”].’ ‘.$_POST[“InputNom”]); // Add a recipient
$mail->addReplyTo($email, “UZER”);
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = “Bienvenue parmi nous !”;
$mail->Body = file_get_contents(‘http://uzer.eu/wordpress/wp-content/themes/uncode/library/mailchimp/header_email_news.html’).$_POST[“InputPrenom”].file_get_contents(‘http://uzer.eu/wordpress/wp-content/themes/uncode/library/mailchimp/welcome_email.html’).”

“;
$mail->AltBody = file_get_contents(‘http://uzer.eu/wordpress/wp-content/themes/uncode/library/mailchimp/welcome_email.txt’);
if(!$mail->send()) {
//echo ‘Message could not be sent.’;
//echo ‘Mailer Error: ‘ . $mail->ErrorInfo;
} else {
//echo(“Message envoye”);
}
echo(““);
}
}
else{
$status=””;
}
if(isset($_POST[‘subscribePopup2’])){
$MailChimp = new MailChimp(‘79107b60bbf29c221c43af2e738c7338-us10’);
$result = $MailChimp->call(‘lists/subscribe’, array(
‘id’ => ’00fc0365db’,
’email’ => array(’email’=>$_POST[“InputEmail2”]),
‘merge_vars’ => array(‘FNAME’=>$_POST[“InputPrenom2”], ‘LNAME’=>$_POST[“InputNom2″]),
‘double_optin’ => false,
‘update_existing’ => false,
‘replace_interests’ => false,
‘send_welcome’ => false,
));
if (array_key_exists(‘status’,$result)){
$status=”Erreur”;
if ($result[‘code’]==214){
$status = “Vous vous êtes déjà inscrit.”;
}
}
else {
$status=”Merci pour votre réservation”;
$mail = new PHPMailer;
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = ‘smtp.uzer.eu’; // Specify main and backup SMTP servers
$mail->CharSet = ‘UTF-8’;
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = ‘contact@uzer.eu’; // SMTP username
$mail->Password = ‘Beauzer2013’; // SMTP password
$mail->SMTPSecure = ‘tls’; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
$email = “contact@uzer.eu”;
$mail->setFrom($email, “UZER”,”UZER”);
$mail->addAddress($_POST[“InputEmail2”], $_POST[“InputPrenom2”].’ ‘.$_POST[“InputNom2”]); // Add a recipient
$mail->addReplyTo($email, “UZER”);
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = “Votre Eugène est réservé !”;
$mail->Body = file_get_contents(‘http://uzer.eu/wordpress/wp-content/themes/uncode/library/mailchimp/header_email.html’).$_POST[“InputPrenom2″].file_get_contents(‘http://uzer.eu/wordpress/wp-content/themes/uncode/library/mailchimp/reserver_email.html’).”

“;
$mail->AltBody = file_get_contents(‘http://uzer.eu/wordpress/wp-content/themes/uncode/library/mailchimp/reserver_email.txt’);
if(!$mail->send()) {
//echo ‘Message could not be sent.’;
//echo ‘Mailer Error: ‘ . $mail->ErrorInfo;
} else {
//echo(“Message envoye”);
}
echo(““);

}
}
else{
$status=””;
}
?>