Assuming your contact page is the same on salaroche.net, copy over the following files and directories from the salaroche.com remote server:
webassist/email/phpmailer
webassist/email/contact.php (you might want to change the text in this file to indicate the email has been sent from salaroche.net, just for your own reference)
webassist/email/WA_Email.php
webassist/form_validations
webassist/mysqli
On your Contact page, replace the existing PHP code at the top with the following:
<?php require_once("webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php
if (isset($_POST["SimpleContact_submit"]) || isset($_POST["SimpleContact_submit_x"])) {
$WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."?invalid=true";
$_SESSION['WAVT_Contact_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["Full_Name"])?$_POST["Full_Name"]:"") . "",true,1);
$WAFV_Errors .= WAValidateEM((isset($_POST["Email_Address"])?$_POST["Email_Address"]:"") . "",true,2);
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security_Code"])?$_POST["Security_Code"]:"")) . "",((isset($_SESSION["captcha_Security_Code"]))?strtolower($_SESSION["captcha_Security_Code"]):"") . "",true,3);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"Contact");
}
}
?>
<?php require_once("webassist/email/WA_Email.php"); ?>
<?php
if (isset($_POST["SimpleContact_submit"]) || isset($_POST["SimpleContact_submit_x"])) { //WA Universal Email
$Email = new WA_Email("contact2");
$Email->Redirect = "ESuccess.php";
$Email->From = "info@salaroche.net";
$Email->addTo("salaroche@gmail.com");
$Email->BodyFile = "webassist/email/contact.php";
if (function_exists("rel2abs") && $Email->Redirect) $Email->Redirect = $Email->Redirect?rel2abs($Email->Redirect,dirname(__FILE__)):"";
for ($emailGroup=0; $emailGroup<sizeof($Email->To); $emailGroup++) {
$Email->Subject = "Contact from Website";
$Email->send($emailGroup);
}
$Email->close();
}
?>
You will probably need to add the same DNS TXT field to salaroche.net for it to work with your Gmail account.