How to get a specific mail body using api

Greeting, is there any way to get mail message using api or programatically (not through UI).
I am automating a signup process and require to get verification code sent to the mail using api or code.

Thanks.

1 Like

Only way to read email is through pop or imap - there is no api endpoint for it and there shouldn’t be (as it can cause privacy issues)

You cannot do it via mailinabox, but you can do it via sendgrid inbound parse.

You just configure all your sign up mails to be forwarded to the inbound parse address. Sendgrid will then forward the mail to your api end point.

More info : Setting Up The Inbound Parse Webhook | Twilio

PS: we could have piped the incoming mail though, but i never got it working in miab.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.