Ciao ragā, ecco il problema: sul mio sito offro algi utenti la possibilita di registrarsi. La reg. si svolge in 4 fasi e all' ultima devo mandare una mail all' utente con un riepilogo dei dati.
Ho scaricato oggi l ultima versione di phpmailer , ecco quello che go scritto gurdando un po in giro sul forum... non tutto mi č chiaro!!!
require_once 'phpmailer/class.phpmailer.php';
require_once 'phpmailer/class.smtp.php';
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP $mail->Host="??????";//SMTPservers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "jswan"; // SMTP username
$mail->Password = "secret"; // SMTP password
$mail->From = "miamail@hotmail.com";
$mail->FromName = "io";
$mail->AddAddress("miamail@hotmail.com","io");
$mail->IsHTML(true); // send as HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the HTML body";
$mail->AltBody = "This is the text-only body";
if(!$mail->Send())
{
echo "Message was not sent
";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
domanda 1:
$mail->Host="??????";
che ci devo mettere?
domanda2:
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "jswan"; // SMTP username
$mail->Password = "secret"; // SMTP password
sono necessari?
domanda 3:
$mail->AddAddress("miamail@hotmail.com","pippo");
necessaria?
grazie belli