Contattaci
Utilizzare le informazioni qui sotto per contattarci.
Modulo di contatto |
if ($_POST)
{
$name=$_POST[name];
$email=$_POST[email];
$phone=$_POST[phone];
$subject=$_POST[subject];
$msg=$_POST[msg];
if ( ($name!='') && ($msg!='') && ($subject!='') && ($email!='') && ($phone!='') )
{
$trimis="Mesajul a fost trimis. Va multumim!";
$body1="Nume: $name
";
$body1.="Telefon: $phone
";
$body1.="Email: $email
";
$body1.="Subiect: $subject
";
$body1.="Mesaj:
$msg
";
require_once('class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.regionalis.ro"; // SMTP server
$mail->SMTPDebug = 1; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "mail.regionalis.ro"; // sets the SMTP server
$mail->Port = 26; // set the SMTP port for the GMAIL server
$mail->Username = "xpak+regionalis.ro"; // SMTP account username
$mail->Password = "deepdark"; // SMTP account password
$mail->SetFrom('reservation@vigohotel.ro', 'Formular Contact Website VigoHotel.ro');
$mail->Subject = "Formular Contact Website $name";
$mail->MsgHTML($body1);
$address = 'reservation@vigohotel.ro';
$mail->AddAddress($address);
$mail->Send();
} else {
$trimis="Formularul nu este complet!";
};
};
?>