Timeline for Send mail to the System Administrator
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 9, 2022 at 6:00 | history | tweeted | twitter.com/StackSalesforce/status/1568116999926026240 | ||
Sep 9, 2022 at 3:54 | answer | added | Antriksh jain | timeline score: 0 | |
Dec 4, 2016 at 12:51 | answer | added | user | timeline score: 5 | |
May 3, 2016 at 9:45 | vote | accept | DOMINIC EDWARD | ||
Apr 11, 2016 at 14:21 | vote | accept | DOMINIC EDWARD | ||
May 3, 2016 at 9:45 | |||||
Jan 20, 2016 at 10:11 | vote | accept | DOMINIC EDWARD | ||
Apr 11, 2016 at 14:21 | |||||
Jan 20, 2016 at 9:56 | answer | added | kurunve | timeline score: 6 | |
Jan 20, 2016 at 9:07 | comment | added | DOMINIC EDWARD | it worked fine @kurunve. Thanks. Can you post this as answer | |
Jan 20, 2016 at 8:42 | comment | added | kurunve | than query users with System Admin profile and use their email. like - Profile p = [SELECT id FROM Profile WHERE name = 'System Administrator']; Users[] u_to_send = [SELECT Id, Email FROM User WHERE ProfileId = :p.Id]; String[] toAddresses = new String[] {u_to_send.get(0).Email}; mail.setToAddresses(toAddresses); but I would recommend to use setTargetid of user to avoid limit of sending direct emails to addresses | |
Jan 20, 2016 at 8:33 | comment | added | DOMINIC EDWARD | Whoever logs in I want the mail to be send mail to the system admin irrespective of whoever the user be.@SantanuHalder | |
Jan 20, 2016 at 8:29 | comment | added | Santanu Halder | You mean send mail only if the user is System Administrator? | |
Jan 20, 2016 at 8:25 | history | asked | DOMINIC EDWARD | CC BY-SA 3.0 |