You need to sign in to do that
Don't have an account?

Event email-trigger when new account is added
Hello dear community, I already have an email template as a component and I just want to create a little bit of code, that sends this email to the account when he/she is added, any tipps or advices? thanks in advance:)
Can you elaborate your problem? Are you trying to add a VisualForce Component into a VisualForce template?
Can you clarify what you mean by "he/she is added"? Are you planning to implement this via a workflow rule?
Hello, basically I already have a pdf as a component in the production, so all I want to do is creating an event trigger that sends this pdf as an email to a person who has been added to accounts.
http://www.sfdc99.com/2014/03/01/sending-emails-using-apex/
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_email_outbound_single.htm
here use EmailTemplate et=[Select id from EmailTemplate where name=:'EmailTemplatename'];
and use this emailtemplate id to use the template
like mail.setTemplateId(et.id);
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_email_outbound_base.htm#apex_classes_email_outbound_base
Thanks
choose it as best answer if it has helped you