+ Start a Discussion
Pal2011Pal2011 

Batch Apex

Hi,

 

How can I create a batch apex to send an email with email template created in Visualfore page?

 

Thanks,

Sonam_SFDCSonam_SFDC
souvik9086souvik9086

You can get your requirement here

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

vbsvbs
@Pal - You will need to use the setTemplateId to link the email message to the mail template and use the the SingleMailMessage class object to setup the mail. MassEmail message does not support use of templates. Please be aware of governor limits though. I think you will be limited to 100 emails in a single sendEmail call and 10 sendEmail calls in a single transaction.