Hello there! I made a contact-form with PHP but the e-mails go directly into the spam folder. Then I ran a test on http://www.mail-tester.com and I got some errors. As you can tell, I am new to PHP and I don't know what to do. I appreciate any help!
1. HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag
2. MIME_HTML_ONLY Message only has text/html MIME parts
3. MISSING_DATE Missing Date: header
4. "Your message is not signed by DKIM"
Spoofing means that you are setting the From address to look like it is coming from a user@domain that is not valid for your mail server.
So if my domain is gizmola.test and I set up my from to be email@example.com, this is "spoofing". I would need the mail to come from firstname.lastname@example.org.
You should open up your received email that is in the spam folder for your tests, and look at the actual email headers to see what is in there. If you want to provide the headers, we might b