32
Views
1
Comments
Solved
SMTP Server Suggest to have email trigger rest
Question

My org smtp server is not able to be set up so that if an email arrives at an address it triggers an action on my server to run, receive the email contents and then do work based on the contents (I can handle that side). Also I can't spool up my own smtp server either.

Anyone have any experience with a smtp server service that can be easily tied into a rest etc on an OutSystems server to do this? Any connectors on the forge?

2021-10-09 07-57-44
Stefan Weber
 
MVP
Solution

Hi Jason,

if i understand you correctly you need a way that an incoming mail automatically triggers an action in OutSystems, right?

Regular SMTP will not give you that option. You would always need to poll yourself for new items. GMail or Microsoft Exchange support event subscriptions that can be used to receive a webhook on received items.

For Gmail https://developers.google.com/gmail/api/guides/push

For Microsoft Exchange via Graph API https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-1.0&tabs=http

Stefan

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.