0

today I tried to send email with scratch org in APEX but not success. Although when create scratch I added these lines to file project-scratch-def.json like below:

"emailAdministrationSettings": {
    "enableEnhancedEmailEnabled": true,
    "enableEmailToSalesforce": true
}

So is it possible to send email in scratch org? If it is possible, please let me know how to do/config to able to send email?

2 Answers 2

2

The answers is yes, You can send emails from Sandboxes. Maybe you can check if your org is sending emails and then try to get your APEX to run.

Assuming you create a fresh sandbox , you should be able to see on your accounts an activity board on the right side of the screen, you can select the "email" option and try to send an email to yourself.

enter image description here

2

you need to verify the email address of the scratch org user. This can be done by resetting the password for the scratch org default user

You must log in to answer this question.

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