2

I am suddenly unable to send emails from sandbox. This includes all emails from process flows (i.e. email alerts), email template previews, case emails, and even deliverability testing. I checked deliverability and it is correctly set to "All Emails": enter image description here

I've also verified that the emails are not going into the spam folder or being caught by my company's corporate spam blocker. After scouring the internet, all I can find is to set deliverability to "All Email" which I've done. Is there anything else that would prevent emails from going out?

4
  • did you look in the email log? errors can be found there
    – cropredy
    Jul 15, 2019 at 14:44
  • I did. The results were "R" (received) and "D" (delivered), but I've not received any emails.
    – Paugh
    Jul 15, 2019 at 17:08
  • And email addresses don't include 'invalid.com' ?
    – cropredy
    Jul 15, 2019 at 17:37
  • That was it. The from address still had ".invalid". I removed that and it worked.
    – Paugh
    Jul 15, 2019 at 18:47

3 Answers 3

2

(based on comment thread)

SFDC sandboxes will not send emails if the from or to recipient includes .invalid. By default, sandbox users will have the email appended by .invalid

see also related Sandbox Email ( Workflow, Process Builder, Apex ) no longer send email if user email ends in .invalid

3
  • I had removed ".invalid" but refreshed the sandbox a couple months ago and forgot to reset the email. Working great now. Thanks.
    – Paugh
    Jul 15, 2019 at 19:09
  • @cropredy even trying to send to my personal inbox ain't working any other suggestesions?
    – compski
    Apr 5, 2022 at 4:24
  • @compski - you should post a new question and link to this one, explaining your setup in detail and what you are experiencing. Be explicit and show all the paths you have taken to avoid it being closed as a duplicate
    – cropredy
    Apr 5, 2022 at 4:46
1

You can avoid spending minutes to manually remove the .invalid from all the email adresses, by doing it in seconds using sfdx-hardis command sfdx hardis:org:user:activateinvalid

sfdx plugins:install sfdx-hardis
sfdx hardis:org:user:activateinvalid

enter image description here

More info & demo in this article

Disclaimer: my company authors this plugin

-1

I had to remove the ".invalid" from the default automation user's email address and that solved my issue.

You must log in to answer this question.

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