The Sender Policy Framework (SPF) was designed to prevent fraudsters from using legitimate email addresses to send spam or other fraudulent emails. An SPF record is a TXT record that allows you to specify which servers can send emails on your behalf and helps prevent these emails from getting caught in recipients’ spam folders.
Some of Braintree’s features, like email receipts and recurring billing notifications, can send emails to customers on your behalf. Before you can use these features, you will need to add the following to your SPF record:
Your full SPF record should look something like this:
v=spf1 a mx include:spf.braintreegateway.com -all
If you're having trouble setting up your SPF record, please contact your website’s domain provider for assistance. The process varies depending on your provider, so they will be your best resource for assistance. For more general information about SPF records, openspf.org is a great reference.