laravel application that uses gmail smtp all email goes to spam
I have an email called [email protected], I created it using G Suite and I use it on my .env file
I have set txt record with value
v=spf1 mx -all
I have MX record with mail server 'mydomain.com'
any ideas please?
The recommended spf record for G Suite is:
v=spf1 include:_spf.google.com ~all
If you have set the MX record for mydomain.com to mydomain.com, but are using gmail, spf fails and mail is likely to end up in spam if not silently deleted. This is especially true when using
-all instead of