How to create a PDF file and attach it to email

Learn How to Create PDF Files Using Chronoforms8: A Step-by-Step Guide

Overview

This guide explains how to generate PDF files with Chronoforms8 by adding a TCPDF action to your form. You can customize the storage path, enable the store option, and format the PDF content using HTML or CSS. Additionally, it covers how to attach the created PDF to an email by setting the TCPDF action to run before the email behavior.

Create PDF files using your Chronoforms8

How to create a PDF file and attach it to email image 2

  1. Open the Actions area
  2. Open the Advanced section and drag a TCPDF action to the Load or Submit area of your form page

How to create a PDF file and attach it to email image 3

  1. Customize the storage path on your server
  2. Make sure the store option is selected
  3. Customize the PDF file content, this may include HTML or CSS inside Style tags, you may enable the rich text editor for this

Save the form and test the PDF file, you may set the TCPDF action to "Store and Download" so that you can view the created PDF file

if you want to attach the created PDF file to an email then you need to add the PDF file path to the Email attachments behavior, you will also need to have the TCPDF run BEFORE the email, here is how it should look like:

How to create a PDF file and attach it to email image 4

You may also like:

Comments:

You need to login to be able to post a comment.