Salesforce DML Exception while Emailing and Updating User
The following exception is thrown when sending emails and updating the users using apex with setSaveAsActivity set as true while sending emails. Exception: MIXED_DML_OPERATION, DML operation on setup object is ....