ssues with Backend Workflow Emails Not Sending in Bubble

Hello Bubble Community,

I’m having trouble with a backend workflow to send emails to a list of clients in my Bubble app. After several days of troubleshooting, I’m still unable to resolve the issue, and I hope someone can provide guidance. Here’s a detailed summary of the situation:

Project Overview:

I’m developing a referral system app where a backend workflow (send_email_to_client) should send personalized emails to each client from a list. The email is triggered from a button click, which schedules the API workflow on a list of clients.

Workflow Details:

  • Backend Workflow: Created as send_email_to_client, with an action to send an email to each client.
    • Parameters:
      • Client of type Client, marked as a list/array.
    • API workflow is exposed as public.
    • The action references dynamic data, such as the client’s name and email.
  • Scheduling: On the main page, the button Send Email to Clients is set to schedule the send_email_to_clientworkflow on a list of clients. The scheduled date is set to Current date/time.

Troubleshooting Steps So Far:

  1. Checked Server Logs: The logs show the workflow starting and finishing without any errors. However, no emails appear in the recipients’ inboxes or spam folders.
  2. Verified Email Setup: Verified that the email dynamic fields are correctly set up and reference Client: each item's Email.
  3. Privacy Settings: All relevant data types, including Client, are public to ensure that privacy rules don’t interfere.
  4. Testing Direct API Calls: I attempted to test the API workflow by directly calling it but found no option to “Run” or “Test” it directly from the Bubble interface.

Main Questions:

  1. Is there a method within Bubble to directly test or run a backend API workflow to verify email functionality?
  2. Has anyone experienced similar issues where workflows complete but emails aren’t sent?
  3. Are there additional debugging steps or settings in Bubble for email delivery that I might be overlooking?

Thank you for any help or advice on this!

Hi @ozturk.thibaut,

What email provider are you using to send these emails? Typically, Sendgrid doesn’t have the best deliverability leading to emails not being delivered.

You can add another action after the email action runs with a condition to fire another action if the email API response returns an error. For example, if the API response returns an error, you can send the details to Sentry.