Mailparser : Raw email to object

Options
Future
Future Member
edited February 2023 in ✂️ Snippets

After having some trouble parsing emails in Xano and seeing that I wasn't the only one, here's a snippet that I'm sharing that will help you parse an email received from a webhook or download a raw email (ex: from an S3 bucket or any other URL):

https://www.xano.com/snippet/UbdFLSlf/

2 groups :

  • Download from URL
  • Receive from webhook

Snippet is a simple endpoint that you'll be able to convert to a function or use as is. Delete the group you won't use, you'll end up with variable "parsed_email" with email object data.

* Disclaimer : You'll need lambda functions to parse emails (a paid account).

Have fun :)

Comments