1

I have an insurance certificate that I want to send to specific member, manually or automatically as a .pdf attachment. How can I do this? My question seems stupid but I don't find the way.

With Search contacts, I can find the contact I've identified previously and within "Action:" I can Print/Merge documents but then I download a .pdf when I want to send it instead. I can also send an email using my HTML template with the right Fuzion tokens but it generates no .pdf attachment. So is there a way to combine both?

I saw these posts: how-can-i-attach-a-pdf-certificate-for-a-membership-payment but it's from 2015 and didn't seem successful and print-pdf-and-send-to-contact. I'm wondering if there is a simple way to get it done with CiviCRM 5.13.4.

Have I missed something really obvious?

0

You could do this with the PDF Creation API extension: https://civicrm.org/extensions/pdf-creation-api

This extension allows you to send a PDF attached to an email.

  • Hi ErikH! thanks for your quick answer. I've already installed this extension. How does it work? How do I use this API? I'm not a developper ;-) – Guillaume Sorel Jun 20 at 14:27
  • You use the API normally in code, but if this is a 1 off exercise you can do so with the API Explorer (Support>Developer>Api Explorer). There will be a PDF entity with create action. You will have to fill in the contact you are going to send it to and the template you want to use. Check if it makes sense? – ErikH - CiviCooP Jun 21 at 13:13
  • I didn't know anything about API explorer. I gave a try and it seems really exciting. I have many questions now! I will open a new thread to learn more about this procedure. thanks Erik for showing the way. – Guillaume Sorel Jun 24 at 7:26
  • Be carefull with the API explorer, it is meant as a developer tool not as an addition to the user interface :-) – ErikH - CiviCooP Jun 24 at 8:56
  • ok. thanks I will watch out. – Guillaume Sorel Jun 24 at 9:33
0

Hope I'm understanding your question correctly. I'm assuming that you have the PDF document saved somewhere else and that it doesn't require to be amended to suit the individual concerned.

Search for the individual to whom you wish to send the PDF.

In the Actions facility, there is an option to send an email. Select that and when it's loaded, you'll find an attachments section right at the bottom. In there you can browse to the appropriate place where your document is saved and attach it to the email.

If you wanted to send it to many individuals and by using CiviMail, there is a similar Attachment facility tab in there to enable the same thing.

If the certificate does require amendment to suit the individual, then you could create a template to include the whole certificate and use tokens to personalize it.

Hope this helps.

  • Hi peterb. thanks for answering me. That's what I'm actually doing. And it would be great to have 1 steps instead of 2, especially with 4000 member ;-). I want to amend the .pdf if possible. The ideal process would be : having an html template (document #1) with general purpose and some fuzion tokens and a certificate template (document #2) that also has fuzion fields and is send attached to email with text #1 as .pdf (or any kind of standard file type) – Guillaume Sorel Jun 24 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.