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
Mounika Karri 6Mounika Karri 6 

How to send millions of emails in salesforce daily without any event happening. Here event means the trigger events like without firing the trigger how can we do this

Deepali KulshresthaDeepali Kulshrestha
Hi Mounika,

You can send the millions of emails by using the batch class and if you want to set it on a daily basis then you have to simply just schedule it on daily basis by using the Cron Trigger.
Please refer to these links it may be helpful to you: 
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm
https://success.salesforce.com/answers?id=9063A000000l6HlQAI
https://salesforce.stackexchange.com/questions/137959/scheduling-a-batch-job-at-a-particular-time

For creating a cron expression you can go over to the following link:
http://www.cronmaker.com/

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
Mounika Karri 6Mounika Karri 6
Thank You Deepali.
But in batch while sending email there is a limitation on settoaddress, then how should I add millions of email Ids in that?