Dynamic Email routes
I have an interesting question, is it possible to archive the following with one of the email programs e.g. Mailgun Sendinblue etc.
I have a site where people can list different classifieds for sale, I want to make that whenever someone lists something he would get an email address with @mydomain.com that will forward the emails to his personal email account.
yzahn last edited by yzahn
@Williamsburg sure it’s possible, and it shouldn’t be too difficult either.
I will speak about Mailgun because I am familiar with them, but it may be possible with other services also.
In Mailgun you route incoming email using “routes”. e.g. you can declare a route commanding mailgun to forward all mails who’s recipient address matches a certain regex to a certain email.
The routing mechanism is controllable through the web UI and also programatically via their API.
Their API documentation is clear and easy to understand.
Basically you will need to programatically create a new route whenever a listing is added. It can be achieved using a simple POST request.
Thank you very much for the clear explanation, this answers the second part, what about the possibility of creating virtual email addresses through the API, or maybe it’s not needed as Mailgun will receive all email’s sent to my domain anyway (catch all)?
yzahn last edited by
Copyright © 2020 | firstname.lastname@example.org