L'errore te lo deve dare quando vai ad inviare, non di registrazione avvenuta o dati in db.
Modifica il codice come ti ho proposto e posta.
L'errore te lo deve dare quando vai ad inviare, non di registrazione avvenuta o dati in db.
Modifica il codice come ti ho proposto e posta.
<?php
function Send_Mail($to,$subject,$body)
{
require 'class.phpmailer.php';
$from = "xxxxxxxxx@gmail.com"; QUI HO INSERITO LA MIA MAIL
$mail = new PHPMailer();
$mail->IsSMTP(true); // use SMTP
$mail->IsHTML(true);
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "tls://smtp.gmail.com"; // Amazon SES server, note "tls://" protocol
$mail->Port = 465; // set the SMTP port
$mail->Username = "xxxxxxxxx@gmail.com"; // SMTP username QUI HO INSERITO LA MIA MAIL
$mail->Password = "XXXXXXX"; // SMTP password QUI LA PASSWORD DEL MIO ACC. GMAIL
$mail->SetFrom($from, 'From Name');
$mail->AddReplyTo($from,'From Name');
$mail->Subject = $subject;
$mail->MsgHTML($body);
$address = $to;
$mail->AddAddress($address, $to);
$mail->Send();
if(!$mail->Send())
{
echo("Errore: " . $mail->ErrorInfo);
}
}
?>
niente nessun errore . Stessa dinamica di prima