Skip to main content
Known Participant
April 12, 2019
Question

Website with contact form: not sending the email.

  • April 12, 2019
  • 2 replies
  • 4864 views

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 has been closed for replies.

2 replies

Nancy OShea
Community Expert
Community Expert
April 12, 2019
Nancy O'Shea— Product User & Community Expert
B i r n o u
Legend
April 12, 2019

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

B i r n o u
Legend
April 12, 2019

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';