💜 FlutterFlow Guide (Email + PDF)
Last updated
Was this helpful?
Last updated
Was this helpful?
Hello and welcome to this step-by-step tutorial! Today, we'll teach you how to create an invoice email template with a PDF attachment in Emailflow and then bring it to life in your Flutterflow project. Strap in; this is going to be a fun and educational ride!
A newly created project in
A project in
Log into Emailflow: Head over to and log in.
Create a New Project: Once logged in, create a new project to house your email templates.
Go to 'Email Templates': Navigate to the Email Templates
section in your dashboard.
Create a New Template: Click the Create New Template
button.
Name Your Template: Name it something meaningful like Invoice Email
.
Upload HTML File: Use an HTML editor like to craft your email, then upload the HTML file.
Example HTML:
Test Your Email: After uploading, you'll be prompted to test your email. You'll see a rendering of your email on the left and a list of parameters on the right. This step is essential for adding the subject line.
Add Subject and PDF: During testing, you can also specify the subject line and add a PDF attachment if necessary.
Save the Template: Once satisfied, click Save
.
Note: Remember your
templateId
, you'll need it later.
Before sending any emails, you'll be prompted to configure your email settings:
Navigate to 'Email Settings': This tab is located right under Email Templates
.
Set 'From Name': Set the name that will appear in the FROM_NAME <notifications@em.emailflow.so>
section of the email.
Set 'ReplyTo': Choose the email where you'd like to receive replies.
Navigate to 'PDF Templates': This is next to the Email Templates
tab.
Create New Template: Click to create.
Upload HTML File: Craft your invoice template including placeholders for a list of items and the total price.
Example HTML:
Save the Template: Don't forget to click Save
.
Note: Keep track of this
templateId
as well.
Open Flutterflow Project: Navigate to your project and click on API Calls
on the left sidebar.
Import OpenAPI: Click on the Import OpenAPI
button and select the YAML file you downloaded earlier from Emailflow.
Test the API: Before using it in actions, go to Response & Test
and populate the fields to make sure everything works as expected.
Add an action in Flutterflow where you want to send the invoice.
Choose API Call
, then select the Emailflow API you've imported.
Populate the fields using the template parameters.
Run a test in Flutterflow to confirm that both the email and PDF are generated and sent as expected.
Congratulations! You've now mastered the art of creating invoice email templates with PDF attachments in Emailflow and Flutterflow! Your invoicing is automated, leaving you more time to focus on your business. 🌟