Contact form / php / phpmailer

So my problem is my contact form that is on my site currently will not send emails to me or my websites email addresses.

I am new to php and html, I have signed up with Postmark to handle the SMTP and downloaded the necessary php files from github.

When I FTP my contact.php file & the phpmailer files to my web server I immediately get a fatal error. But when I take out the

$mail->IsSMTP();
$mail->SMTPAuth = true;

the page renders fine, but still unable to send an email. Looking for help on this, on day 6 of frustration.

You can view my current code with the email/username/passwords taken out here:

Please provide detailed responses.
Thank you in advance for you help.

-Ryan

I’m taking a guess here, but I think you need to move these to lines to the top of your code

[php]require_once(“inc/phpmailer/class.phpmailer.php”);
$mail = new PHPMailer();[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service