Can't make a SPF record work


I’ve been struggling with this problem for a while now.

I’ve a domain name hosted at OVH and using it in Netlify. I’ve also a mail service attached to it.

Since a moment, my emails can’t reach Gmail accounts, due to an incorrect SPF record.

I’ve tried to add a SPF record that goes like this: " IN TXT “v=spf1 ~all” but when I do that, it’s simply not taken into account.

What is taken into account is a TXT record, but somehow it always ends up looking like this: 0 IN TXT “"v=spf1 ~all"”

instead of: 0 IN TXT “v=spf1 ~all”
Even when I type it manually in the add record form.

Is there something I’m doing wrong here ?

You need to add a TXT record with the value: v=spf1 ~all and @ as the hostname.