hey guys, I’m finally finishing this project. I only edited ONE spot – do I really need to add my actual email password? I ask because I’ve never had a form like this. Here’s what I’ve edited in the php file:
*Please let me know what I’m doing wrong. I made the CHMOD permissions 755 – but the form is not working.
It’s LIVE here: http://saskwebsites.com/IRE/contact.html
THANK YOU!!!!!
if($message==’’ && (isset($_POST[‘action’]) && $_POST[‘action’]==’js’)){ require_once(‘class.phpmailer.php’); include(“class.smtp.php”);
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPDebug = 0; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = “tls”; // sets the prefix to the server
$mail->Host = “smtp.example.com”; // sets GMAIL as the SMTP server
$mail->Port = 587; // set the SMTP port for the GMAIL server
$mail->Username = “[email protected]”; // GMAIL username
$mail->Password = “”; // GMAIL password
$mail->SetFrom(‘[email protected]’, ‘Mailer’);
$mail->Subject = $subject;
$mail->MsgHTML($body);
$mail->AddAddress(“[email protected]”, “IRE”);
if(!$mail->Send()) {
// echo “Mailer Error: ” . $mail->ErrorInfo;
echo “Error while sending message…”;
} else {
echo “OK”;