Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('mail/class.phpmailer.php');
- $mail = new PHPmailer();
- $mail->IsSMTP();
- $mail->Host='in.mailjet.com';
- $mail->SMTPAuth=true;
- $mail->SMTPSecure = 'ssl';
- $mail->Port = 465;
- $mail->Username='xxx' ;
- $mail->Password='xxx' ;
- $mail->From='contact@creanims.com';
- $mail->AddAddress('hgus@hotmail.fr');
- $mail->Subject='Objet du message';
- $mail->Body='Votre message';
- if(!$mail->Send()){
- echo $mail->ErrorInfo;
- }
- else{
- echo 'Mail envoyé avec succès';
- }
- ?>
- $mail->SetFrom('contact@creanims.com');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement