You need to sign in to do that
Don't have an account?

NO_MASS_MAIL_PERMISSION when using a guest user profile
Hello all
I'm building a public portal where one of the things a user can request is to be sent an email with some info.
I'm using an APEX code with Messaging.SingleEmailMessage.
The problem is that I'm getting NO_MASS_MAIL_PERMISSION which might be because a Guest User Profile has no Send Email feature.
Is that correct?
What is the right way to send and email from APEX in such a case?
Thanks
Oded
just try one thing , remove with sharing key word from your class and then check results
All Answers
just try one thing , remove with sharing key word from your class and then check results
One reason might be that Guest User does not have the right on the record which you are using as targetObejectId. Check your sharing settings or Guest User profile rights.
Super, it works
Thank you very much
Your Welcome Mate