Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("lib/phpmailer/class.phpmailer.php");
- $mailer = new PHPMailer();
- $mailer->IsHTML(true);
- $mailer->Username = 'nicolas.biltgen.fr'; // Change this to your gmail adress
- $mailer->Password = 'eco13015'; // Change this to your gmail password
- $mailer->From = 'nicolas.biltgen.fr'; // This HAVE TO be your gmail adress
- $mailer->FromName = 'ecomixhqe'; // This is the from name in the email, you can put anything you like here
- $mailer->ReplyTo='nicolas.biltgen.fr';
- $mailer->Body = 'M/Mme '.bieltgn.' '.$nicolas.' (tel: '.telephone.')<br /><br />'.'Ceci est un message automatique ne pas y répondre directement'.'<br />'.'Voici le mail de la personne interessé : '.$mail.'<br /><br />'.$complement;
- $mailer->Subject = 'l\objet';
- $mailer->AddAddress('nicolas.biltgen.fr'); // This is where you put the email adress of the person you want to mail
- if(!$mailer->Send())
- {
- echo "Message was not sent<br/ >";
- echo "Mailer Error: " . $mailer->ErrorInfo;
- }
- else
- {
- echo "Message has been sent";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement