Templated/Formatted Emails

Oh, yes, I forgot about that!

In fact, even the joined list with simple HTML tags that I build contains links to custom URI protocols that don’t work from (some) email clients. So the first line has a normal click here for details link which opens an app that shows the same HTML in a custom HTML component.

Summary of my current process:

  • Build the HTML with one click here for details link that contains a link like https://show_email.anvil.app/#?email_id=123.
  • Store the HTML string in a table with id 123
  • Send the email with the HTML string
  • Create a show_email app that gets the HTML from the table and shows it on a form with a custom HTML component

An alternative that I have not tested could be to create an Anvil app with a form with a click here for details link that opens the app itself. The user will see the content embedded in the email, but some components will not work as expected. The click here for details link will always work, open the app and show a working form.