🫧 Bubble Guide (Email + PDF)
Last updated
Was this helpful?
Last updated
Was this helpful?
Hello there, Bubble users! In this step-by-step tutorial, we'll guide you through the process of creating an invoice email template with a PDF attachment using Emailflow, and integrating it into your Bubble app. Ready? Let's dive right in!
A newly created project in
An app in
Log into Emailflow: Navigate to and log in.
Create a New Project: Create a new project to store your email templates.
Navigate to 'Email Templates': Find this section on your Emailflow dashboard.
Create a New Template: Click to create and give it a meaningful name like Invoice Email
.
Upload HTML File: Use or a similar HTML editor to create your template, and then upload the HTML.
Example HTML:
Test Your Email: You'll be prompted to test your email, letting you preview the rendering and see a list of parameters.
Add Subject and PDF: During the test, you can set the subject line and add a PDF attachment.
Save the Template: Click Save
when satisfied.
Note: Remember the
templateId
for future reference.
Navigate to 'Email Settings': It's right under Email Templates
.
Set 'From Name': Specify the name that will appear in the FROM_NAME <notifications@em.emailflow.so>
part.
Set 'ReplyTo': Set an email address where you want to receive replies.
Navigate to 'PDF Templates': It's alongside the Email Templates
tab.
Create New Template: Click to create.
Upload HTML File: Create your PDF template with placeholders for a list of items and the total price.
Example HTML:
Save the Template: Click Save
.
Note: Keep note of this
templateId
.
Configure API
Open the API Connector: Go to the Plugins
tab in Bubble, and you should see the API Connector plugin. Click on it.
Initialize a New API Call: Name this API call something like SendInvoiceEmail
.
API URL: Paste https://api.emailflow.so/v1/email
into the API URL field.
Method: Select POST
as your method.
Headers: Add the following header to authenticate your API call:
Key: Authorization
Value: Bearer sk-ef-{your-uuid}
Body: Here's how to set up the body for JSON:
Set up Actions in Workflow
Navigate to Workflow: Open your app's workflow in Bubble.
Add Action: Add a new action where you want to send the email (for example, when a user clicks a 'Send Invoice' button).
Choose the API Call: Select the API call you just set up (SendInvoiceEmail
).
Dynamically Insert Data: Now you can use Bubble's dynamic data to fill in the values for name
, invoice_number
, item_list
, and total_price
.
Run a Test: Before integrating fully, trigger the API call within Bubble to ensure that it works as expected. Check your Email Logs in Emailflow to see the status of the sent email.
And there you have it! You've successfully integrated Emailflow into your Bubble app for sending automated invoice emails with PDF attachments. Now, you can automate invoicing and focus on scaling your business. 🚀