I've attached the form file I tried. I get a success message but nothing arrives into my inbox. This is the link to my form if that helps - http://www.cpnag.ie/teagmhail.html
The isSendmail does work as I used this code below and it worked but the success message never appears and it looks like the message is trying to send but it arrives into my inbox. I used this below as a tester and then tried to change the original to suit.
isSendmail();
$mail->setFrom($email_address, $name); // Sender's email and name
$mail->addAddress('heileo@cpnag.ie', 'CPnaG.ie'); // Add a recipient
$mail->isHTML(false); // Set email format to HTML
$mail->Subject = 'New Contact Form Submission';
$mail->Body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nEmail: $email_address\n\nMessage:\n$message";
$mail->send();
echo 'Message has been sent';
} catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}
?>
That's why I wanted to use the original form you had and just change the isSMTP to isSendMail