function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
viktorVviktorV 

Set method calling user

I'd like to create an automated, scheduled mass email sending method. I cannot use orgWideEmailAddresses for Mass mails (please promote this idea: http://sites.force.com/answers/ideaView?c=09a30000000D9y3&id=08730000000BqBoAAK ) and the limit of 10 single email sending method is not enough.

The From header is filled with the method calling user, so I'd like to set the method calling user for apex classes.

How can I do that?

(could it work if I submit the job scheduling with the given user?)

 

thanks,

Viktor