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
RupaliJRupaliJ 

How to access 'My email settings' in apex class

Hi All,

 

I want to access email name, email address and automatic BCC fields of My Email Settings in my apex class. Please suggest me some solution to do this.

 

Thanks.

SørenKrabbeSørenKrabbe

I have the same need.

 

In this rather old thread (2008): http://boards.developerforce.com/t5/Apex-Code-Development/Where-is-the-Email-Name-of-My-Email-Settings-saving/m-p/63297/highlight/true#M2765 it is agreed that it's not possible to access this information via the API.

 

I'm able to find it anywhere in the API

KevinBrKevinBr

Try

User.SenderName
User.Email
User.EmailPreferencesAutoBcc