Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html public "-//W3C//DTD HTML 4.0 //EN">
- <html>
- <head>
- <meta charset="utf-8">
- <link rel="stylesheet" href="stile.css" type="text/css">
- <title>Invio Email</title>
- </head>
- <body>
- <?php
- //Variabili
- $nome=$_POST["nome"];
- $cognome=$_POST["cognome"];
- $email=$_POST["email"];
- $gender=$_POST["gender"];
- $interessi=$_POST["Interessi"];
- //mail
- require_once ('PHPMailer/PHPMailerAutoload.php');
- $invio = new PHPMailer;
- $invio->IsSMTP();
- $invio->Host = 'smtp.live.com';
- $invio->SMTPSecure = 'tls';
- $invio->SMPTAuth = true;
- $invio->Username = 'ilcanaledileon@libero.it';
- $invio->Password = 'stefanoilmigliore99';
- $invio->Port = '587';
- $invio->SetFrom('ilcanaledileon@libero.it'); //mittente
- $invio->addAddress($email);
- $invio->addReplyTo('ilcanaledileon@libero.it'); //Rispondere
- $invio->Subject = 'Registrazione';
- $invio->Body = 'Registrazione al sito';
- if(!$invio->Send())
- {
- echo 'Errore nella spedizione: '.$invio->ErrorInfo;
- }
- else
- {
- echo 'messaggio inviato';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement