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
Sandesh D GanjareSandesh D Ganjare 

Sending Email to mutiple contacts through Batch Apex after finishing the execution?

Hi,
I want to send the email to multiple conatcts after finishing the execution part in Batch APex. 
Thanks
 
sslodhi87sslodhi87
You can collect all the information in global variable of the batch and send email from finish method.
salesforce mesalesforce me
Hi san  checkit once..

1)http://salesforce.stackexchange.com/questions/71038/how-to-send-a-consolidated-email-for-all-batch-class-job-finish-at-the-end-of-th
2)http://salesforce.stackexchange.com/questions/45684/how-do-you-use-batch-for-send-more-than-10-emails
3)http://forceguru.blogspot.in/2011/03/how-to-send-more-than-10-e-mails.html
Sandesh D GanjareSandesh D Ganjare
hello sslodi,
I am new to Apex, can please ellaborate with example. How can I colect the infoglobal varible? 
I want to send the email to only those records that have satisfy the criteria not all the records.

thanks