It is required to prevent the message from being processed further by other actions. Stop(): Simply halts the chain of actions. Store(): Saves the matched email on Mailgun’s server for up to 3 days for later or delayed usage. A list of actions can be found below, keep in mind you can have more than one action at any given time:įorward(): Forwards the email to another email address or URL You can specify the above filter to have actions dynamically if the filter matches an address specified a resulting action will occur. Match_header(header, pattern): Where the header is a (MIME header) and the pattern a regular expressionĬatch_all(): Usually lowest priority as it will forward on any incoming email Match_recipient(pattern): Where patterns is a regular expression of an email address To get started visit the routes in the control panel and remember you’re going to need to change your domain’s DNS settings accordingly so that your MX records point to Mailgun.Ī route is composed of a filter, an action, a description to make it easier for humans to understand what the route does and a priority.
You do this by specifying a filter on a domain or sub-domain. Well, good news, with Mailgun’s email routing you can! What if this email could understand who is sending you the attachments, what they contained and sort them accordingly? What if you could use emails to build an app that received attachments and automatically sent them to your online storage account (like Dropbox, google drive or similar)? Once an email is received, Mailgun can do a few things with it – send it to another endpoint of your choice, redirect it to another email, store it so you can process it later.Ĭool! What do I use it for? Process all attachments! For this reason, I have a set up like the That I use with a normal email That handles other emails workflows through the Mailgun inbound API. This means that you cannot use your email client and Mailgun’s inbound feature on the same domain. I think using a subdomain is the way to go because you can only set up one service to receive your emails at one time. You can set it up with a whole domain or a sub-domain of your choice. Inbound email routing means that you can set up Mailgun to receive emails on your behalf. There is this one particular feature, however, I like to tell people about and that’s the inbound email routing and parsing system, also known as “Routes” in the control panel. When people ask me what I love most about Mailgun, I almost always say how intuitive and well documented the API is. Sending email is certainly the most known feature to Mailgun’s users but Mailgun can do much more than just sending emails and tracking analytics.