function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sapana WSapana W 

Email delivery fail

I encounter following error while sending an email to an email Id through apex code:

"This message was created automatuically by the mail system.
A message that you sent could not be delivered to one or more recipients.  This is a permanent error. The following address failed>>:
******@***.com(Undelivered) 504."

I suppose I have all the required setting configured or am I missing something?

Thanks in advance.
Best Answer chosen by Sapana W
Sapana WSapana W
And I found the solution to this issue, putting it here incase somebody is looking for the same.  Under Email Administration->Deliverability->Email Security Compliance: Enable "Enable compliance with standard email security mechanisms".