I've worked on this for hours. Seriously very frustrated. I don't know code at all and in serious need of help.
I am trying to get an email automatically sent as users reach a particular point in a website. But everything I've tried says error 500. so I am currently following numerous tutorials that suggest downloading this https://github.com/PHPMailer/PHPMailer. Which I've done, including uploading it to my host and nothing occurs.
Please if anyone can help, I seriously don't know code at all so examples only, please.
<?php
require_once ('../PHPMailer/PHPMailerAutoload.php');
$mail= new PHPMailer();
$mail->isSTMP();
$mail-> SMTPAuth = true;
$mail->SMTPSecure='ssl';
$mail->Host='smtp.gmail.com';
$mail->Port='465';
$mail->isHTML();
$mail->SetFrom('no-reply@eves.website')
$mail->Subject='Hello World';
$mail->Body='A test email!';
$mail->AddAddress('brodisashcroft@gmail.com');
$mail-> Send ();
?>