The automated emails (configuration emails, etc.) work just fine using a custom STMP server, so I assume that the email settings are correct.
I created a designated user for this purpose, but no matter what permissions I grant the user via the developer console (see image below) I get the following error:
error message - User has no permission to send email
error code - undefined
I found my mistake. I forgot to check the global permissions under “JSUser”.
Thank you for the tip.
How can I make sure, that no other user can send emails using the JS API, since there is no user permission for sending emails?
Benedikt
Edit: In hindsight, this is not how it is supposed to work, right?
I should be able to grant the user permission for sending emails under messaging → Permissions → User permissions.