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

any ideas please?

1 Reply

The recommended spf record for G Suite is:

v=spf1 ~all


If you have set the MX record for to, 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 ~all.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct