I'm receiving the following error message when using PHPMailer: SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect. What can I do?
1.) Open your sendmessage.php file with a text editor.
2.) Look for the following line: $mail->Port =
3.) Check that your host has enabled your server to send email on the port specified in the above line.
If the above steps do not work, you can try deleting the following line from your sendmessage.php:
SMTPSecure = 'ssl';