Skip to main content
Known Participant
Apr 12, 2019 12:28 PM UTC
Question

Website with contact form: not sending the email.

Hello,

The contact sheet on my website is not sending emails.  I had contacted HostGator, thought it could be something there side, but they said:

"It is usually you using PHPMail that sends the email without the spf record and as such its blocked.  I highly recommend you should use SMTP to send the email out instead of PHPMailer"

I am not sure how to do this and he did not know and said that I should google it.

Would any one know what I will need to do?  My website is [personal infos deleted by moderator].

Thank you.

Sheila

This topic is closed to new replies. Start a new post to keep the conversation going.

34 replies

Nancy OShea
Community Expert
Community Expert
Apr 12, 2019 5:54 PM UTC
Nancy O'Shea— Product User & Community Expert
B i r n o u
Legend
Apr 12, 2019 12:57 PM UTC

PHPmailer is a library that helps you to construct the mail from A to Z, SMTP is also a library (beside the fact that it is a protocol) that helps you to send the mail.

both are really easy to use, and go hand in hand,

you should find everything that you need on the git hub

GitHub - PHPMailer/PHPMailer: The classic email sending library for PHP

Translate
B i r n o u
Legend
Apr 12, 2019 1:00 PM UTC

by the way if you have trouble caused by SPF, think to open the SMTP autentification and use an URL that has the same domain than yours

$mail->SMTPAuth   = true; 

$mail->Username   = [personal infos deleted by moderator]; 

$mail->Password   = 'XXXXXXXXX';

Translate