You need to sign in to do that
Don't have an account?
Tom Hoban.ax728
Can you send email using a Visual Force Email template from a Apex Batch class?
Can you send email using a Visual Force Email template from a Apex Batch class (implements Database.Batchable...)?
When I try, I get:
caused by: System.EmailException: SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, java.lang.NullPointerException: Argument Error: Parameter value is null: []
Running the same code from a Visual Force page, rather than a batch job, runs fine.