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
Bernd NawrathBernd Nawrath 

EMail trigger for Visualforce-Component

Hello dear community, I need some help programming an email trigger for my production, I already have a PDF as a visualforce-component and I want this to be sent automatically when a new account is added. Any advices ?

Thanks in advance :) 
Chidambar ReddyChidambar Reddy
Hi Bernd,

Do you want to send it the pdf as an attachment? or as the body?
I hope this will help in using the component to create email template
https://mindfiresfdcprofessionals.wordpress.com/2013/07/16/188/

after creating email template, you may use the workflow to send the email by using the template
Bernd NawrathBernd Nawrath
@Chidambar Hello thank you, I want to send it as an attachment. How do I do this?
Chidambar ReddyChidambar Reddy
Create the email template by using visualforce page and controller 

You can find the similar program in the link specified in above comment,

after that you can use that template either from workflow or from apex

thanks
I am on mobile right, so I Am available from Monday