SMTPDebug = 1; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'vairtualwebmail@gmail.com'; // SMTP username
$mail->Password = 'VAweb!C0'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
$mail->From = 'vairtualwebmail@gmail.com';
$mail->FromName = 'Join Whitelist - WebForm';
$mail->addAddress('privatesale@virtualarena.io'); // Add a recipient
// Name is optional
$mail->addReplyTo('vairtualwebmail@gmail.com', 'Join Whitelist - WebForm');
// $mail->addCC('cc@example.com');
// $mail->addBCC('bcc@example.com');
$mail->WordWrap = 50; // Set word wrap to 50 characters
// $mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
// $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = $va_firstname. 'A new contact from va site';
$mail->Body = 'First Name :' .$va_firstname. '
Last Name :' .$va_lastname. '
Phone :' .$va_phone. '
email :' .$va_email. '
Address :' .$va_address. '
City :' .$va_city. '
Country :' .$va_country. '
Investment Level :' .$va_investing. '
Payment :' .$va_usd. '
APT :' .$va_wallet. '
Found Us :' .$va_hdyfus. ' ';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
if(!$mail->send()) {
$mail_status = 'Message could not be sent. Mailer Error: ' .$mail->ErrorInfo ;
$errmsg1 = "";
$errmsg2 = "";
$errmsg3 = "";
$errmsg4 = "";
$errmsg5 = "";
$errmsg6 = "";
$errmsg7 = "";
$errmsg8 = "";
$errmsg9 = "";
} else {
$mail_status = 'Message has been sent';
$errmsg1 = "";
$errmsg2 = "";
$errmsg3 = "";
$errmsg4 = "";
$errmsg5 = "";
$errmsg6 = "";
$errmsg7 = "";
$errmsg8 = "";
$errmsg9 = "";
}
} // End if data validated
if($mail_status=="Message has been sent"){
echo '';
}else{
echo $mail_status;
}
} // End if submit buttion is pressd
?>