SMTPDebug = 3; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.zoho.com;'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'contact@delkappa.com'; // SMTP username
$mail->Password = '2MR4J&R674b1'; // SMTP password
$mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 465; // TCP port to connect to
$mail->setFrom('contact@delkappa.com', $name);
$mail->addAddress('manos@delkappa.com', 'Manos Katsomallos'); // Add a recipient
$mail->addReplyTo($email, $name);
$mail->Subject = $subject;
$mail->Body = $contact_message;
if (!$error) {
if (!$mail->send()) {
echo "Something went wrong. Please try again.";
} else {
echo "OK";
}
} # end if - no validation error
/*
else {
$response = (isset($error['name'])) ? $error['name'] . "
\n" : null;
$response .= (isset($error['email'])) ? $error['email'] . "
\n" : null;
$response .= (isset($error['message'])) ? $error['message'] . "
" : null;
$response .= (isset($error['captcha'])) ? $error['captcha'] . "
" : null;
echo $response;
} # end if - there was a validation error
*/
}
?>