You need to sign in to do that
Don't have an account?
AxxxV
Mass Email from a Trigger
Is it possible to send a mass email from a trigger?
My scenario is:
- invoke trigger by editing a record
- trigger queries a Lead object and retrieves up to 250 records
- trigger constructs a massEmailMessage
- trigger executes "Messaging.sendEmail(new Messaging.MassEmailMessage[] { mail });"
- trigger finalizes and commits changes
Message Edited by AxxxV on 09-05-2008 03:46 PM
My scenario is:
- invoke trigger by editing a record
- trigger queries a Lead object and retrieves up to 250 records
- trigger constructs a massEmailMessage
- trigger executes "Messaging.sendEmail(new Messaging.MassEmailMessage[] { mail });"
- trigger finalizes and commits changes
Message Edited by AxxxV on 09-05-2008 03:46 PM
Please read http://www.salesforce.com/us/developer/docs/apexcode/index_CSH.htm#apex_classes_email_outbound.htm
for info on how to send mass emails.
My specific question here is whether there are any limitations on sending mass email from inside a trigger. For example APex can make callaout to external web services, but this is not possible from inside a trigger. Just want to make sure there is no such limitation in case of mass emails.