You need to sign in to do that
Don't have an account?
Raj R.
How to attach pdf from visualforce page in an automated email using apex class or trigger?
Hi,
We have a VisualForce (VF) page that renders as a pdf. I have an automated email that is going to be trigger when criteria A, b, and C are met.
How can i attach the pdf from the VF page as an email attachment in the automated email that is sent from an apex trigger or class?
We have a VisualForce (VF) page that renders as a pdf. I have an automated email that is going to be trigger when criteria A, b, and C are met.
How can i attach the pdf from the VF page as an email attachment in the automated email that is sent from an apex trigger or class?
As per your requirement you have a vf page name is test and you want to send that page as attachment in the mail so for this please use this method in your apex class:
Please let me know if you have any other doubt and if this is the anser of your problem so please select this as the Best Answer.
Thanks
Gyani.
All Answers
http://salesforce.stackexchange.com/questions/22251/insert-attachment-into-visualforce-email-template
Try this code.
Regards,
Chandra Prakash
As per your requirement you have a vf page name is test and you want to send that page as attachment in the mail so for this please use this method in your apex class:
Please let me know if you have any other doubt and if this is the anser of your problem so please select this as the Best Answer.
Thanks
Gyani.
I have tried your method and placed the two lines in my constructure but I'm getting error as Error: Compile Error: unexpected token: ')'
can you help me over here.
regards,
mac.