Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set "reply-to" header field for mailgun

Tags:

Is it possible to set the "reply-to" header field in a Mailgun list? While conversations are sometimes nice, people are getting annoyed at the volume of mail from one particular list, in which respondents ignore the instruction to send the message to a certain email address and hit reply, resulting in dozens (or more) messages containing things like "Got it!" or "I'm coming!" when only one person needs to see the response.

For this particular list, the ideal situation would be to limit the allowed senders to just a few people, but as none of them use services quite as nice as Gmail or a standalone email client (additional SMTP logins cannot be established), I've not found any way to limit the inanity. Does anyone know how to do this?

like image 912
James C Avatar asked May 08 '14 03:05

James C


1 Answers

I am not sure if you are still looking for the answer, but you can set the Reply-To header using the API.

h:Reply-To 

I have been using it with an email hash - each user gets a unique hash in the reply-to field so I know who is replying. Basically the reply-to looks like this:

"h:Reply-To" : "[email protected]" 

In the routes panel add the following and you can redirect to your email or to an HTTP endpoint:

match_recipient("^inboundaddress\+(.*)@mydomain.com") 

Hope that helps. Justin

like image 150
Justin Avatar answered Sep 29 '22 00:09

Justin