I'm sending an email with a Messaging.SingleEmailMessage using a verified Org Wide Email Address.

Also, I have Enable compliance with standard email security mechanisms and Enable Sender ID compliance but I'm still getting these emails in the SPAM folder.

The mail contains an Email Template (text) with one line of text and {Custom_Object__c.Link}

Gmail and Hotmail get it to the SPAM folder and the next warning

"Be careful with this message GMail could not verify that it actually came from xxxxxx.com. Avoid clicking links, downloading attachments, or replying with personal information."

Does anyone know if I'm missing something?

  • 1
    Have you followed these directions? Particularly, have you configured DKIM keys?
    – sfdcfox
    Commented Oct 8, 2019 at 17:36

1 Answer 1


The issue was that I was missing the email relay.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .