Pages: 1
RSS
Reply from recipient address, Reply from where the email was sent, instead of account details.
 
Mornin' -

I'd like to reply to an email based on the address it was sent to (either the To:/Cc: etc or the X-Original-To header), instead of the address of the account in question.

So if someone sends a message, which gets delievered to the mailbox of 'monkey@internet.net':
  To: one@internet.net
  From: foo@xxxx.com

I respond:
  From: one@internet.net
  To: foo@xxxx.com

instead of:
  From: monkey@internet.net
  To: foo@xxxx.com

If it's not possible via the default UI (and I don't think it is), would it be possible to mangle the headers using a template or a macro of some kind?

Cheers!
--B

 
There are many, many ways to do this within TB.

Firstly, define your reply templates as Quick Template sets.

I found a nice little trick. If give your quick templates a handle to match the "To" email address you want to respond from, it makes this job a cinch. Your account level reply templates become simply:

%qinclude="%otoaddr"%-

This will automagically pull the right reply template according to the address the message was sent to.

Each specific reply template can include something like:

%fromaddr="%otoaddr"%-

... to set the correct reply from address. You may need to amend the ReplyTo as well.

[B]%replyto='"%fromname" <%otoaddr>'%-

I think this is the most flexible way to achieve what you want.
iviarck
 
Brilliant!

The following at the top of the template worked like a charm:

%REPLYTO='"%fromname" <%otoaddr>'%
%FROM='"%fromname" <%otoaddr>'%

(%fromaddr didn't do anything)

Cheers!
--B
 
Just an add on: It is possible to alter the from address manually via the GUI. Only thing you need to do is to make the From header visible in the editor.
(Via the menu in the editor: View -> From)
Same goes for the reply-to header.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
Pages: 1