Oct 07, 2024 03:56 PM
I'm working with a client who has a seemingly simple requirement:
"Send an email using Airtable data, then later reply to that email to chase the recipient - ensuring that the reply is in the same thread as the original"
This is deceptively difficult to achieve from Airtable, and I wanted to ask the community if they've found a great solution.
Here's a breakdown of the the problem:
I am considering two possible solutions:
Has anyone looked at this problem before? It would be great to hear what the community thinks of the proposed solutions. If you want any code examples, let me know
Oct 07, 2024 09:52 PM
Hey @Tom_Beckenham
You've got a complex challenge on your hands, but both of your proposed solutions are heading in the right direction. Here's my take:
Google Apps Script + Airtable API Backfeed: This is probably the most efficient route if you want to avoid overengineering. By sending the email via Google Apps Script and then writing the Message-Id back to Airtable as a record, you'll have everything you need for future replies. You could automate a fetch from the Airtable base after sending the email to ensure you capture the necessary data for the "In-Reply-To" header. This avoids fetch limitations and keeps it all within the same ecosystem.
NextJS Custom API Solution: While this feels like overkill for the issue at hand, if you're envisioning scalability and future projects that may rely on more complex email automation or user management, this could be the longer-term robust solution. It would provide a custom layer to handle OAuth, replies, and threading without depending too much on Google or Airtable limitations.