You need to sign in to do that
Don't have an account?
PrasadVR
Can we schedule emails using Apex?
Hi All,
can any one give me some hints on how to do this
I wanted to send emails on hourly basis like day1 at 1PM,5PM,3PM etc.. & again in day2 at 7AM ,10AM,12PM etc......
Thanks in Advance
Hi Naidu,
Try this,
http://salesforce.stackexchange.com/questions/5646/scheduling-emails-in-apex
http://boards.developerforce.com/t5/Apex-Code-Development/Sending-email-from-scheduled-apex/td-p/344827
Regards,
Ashish
All Answers
Hi,
Please check the following link once.
http://blog.deadlypenguin.com/blog/2012/05/26/scheduled-actions-in-salesforce-with-apex/
Thanks
Subhani
Salesforce Certified Developer
www.mydbsync.com
1) Use workflow email alerts
2) USe Apex batch class and schedule it to run every hour ( set frequency as per your need)
If you know how many emails you want to send after the record is created then go for WF rule.
Else go for batch class.
P.S. If you are planning to send emails to non externale addresses then there are limits. http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm
Hi Naidu,
Try this,
http://salesforce.stackexchange.com/questions/5646/scheduling-emails-in-apex
http://boards.developerforce.com/t5/Apex-Code-Development/Sending-email-from-scheduled-apex/td-p/344827
Regards,
Ashish