-1

I've looked this error up, and it seems to be related to inserting updating records. I'm not trying to do anything like that. I'm simply using Messaging.sendEmail(). I'm passing it a list of Messaging.SingleEmailMessage. When debugging it appears that this list is properly populated. What could be causing this error when trying to send messages?

If it helps at all I'm calling this through a Rest API endpoint I've written in a without sharing class.

1 Answer 1

0

After lots of digging we figured it out. The code uses a function that down the line calls another function defined in another class. We needed to give access to our portal profiles to that class. That done, and it works fine now.

You must log in to answer this question.

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