Prerequisites: An email address must be provisioned by Momentic.
email
object. Momentic-provisioned inboxes end in @usemomentic.com or
@gomomentic.com.
email.send
Send an email from a Momentic-provisioned address.
email.fetchLatest
Returns the most recent email, polling until one arrives or the timeout elapses.
Throws on timeout.
email.fetchAll
Returns up to limit emails without polling. Throws if the inbox is empty.
Defaults: 15 minute window, 3 emails. Max: 24 hours, 10 emails.
Isolated inboxes
Append a suffix to your provisioned username to create unlimited isolated inboxes. If your username ismomentic, [email protected] is a
separate inbox fetched via inbox: "momentic+test".
Use randomized suffixes (e.g. Date.now()) in parallel runs to avoid race
conditions.