How to send email with mailgun sender from retool table

Hey @vebse, welcome to the community :hugs:

Soooo, there are a few steps.. :sweat_smile:

I'll try to summarize them at a very high level, but you won't find a ready-to-go tutorial on this atm.

  1. To actually send an email (mailgun or not) you'll need a few things (read more):
    • From/To Address
    • Subject
    • Email body (html or not)
  2. I'm assuming your table holds just one of the 3 data points, the recipient's email address.
    • If that's the case you'll need some sort of process to specify the Subject and Body of the email
  3. On each row, you can add an action button that triggers a JS query for that row. Or a modal that lets you specify the subject/body for that record.
    • If this is a batch process, you'll need to slightly adapt this script to be able to take multiple selected rows and construct the final api calls that need to be made
  4. The actual REST Query that will send the data to mailgun.

Let me know how much of that makes sense to you and you're able to implement. We'll figure it out :v:

2 Likes