Added support for mail forwarding - recipients can now override to, cc, and bcc#52
Added support for mail forwarding - recipients can now override to, cc, and bcc#52oysteinjakobsen wants to merge 4 commits intodrewr:masterfrom
Conversation
|
Thanks @oysteinjakobsen! I've wanted better envelope support but hadn't done it. Couple of thoughts. I'm not sure I like implementing it in |
|
Hi Drew, I am running into an urgent matter - need support asap. Could I ask for someone from your support team to call me? It is so urgent that just need to get someone on the phone. Happy to discuss support options for our business with them, but I need to have our ES up by tomorrow. Rebooted it, and getting an error. Won't start anymore!! Can't stress how urgent this is. Many thanks. I couldn't find a number to call from your website. [FYI, This project is unrelated to Elasticsearch. --Drew] |
b199c5a to
382cb0e
Compare
MOTIVATION
Sometimes, for example when expanding a mailing list address and forwarding a mail to each member, it is useful to be able to override what's given in
:to,:cc, and:bccby explicitly setting which recipients should get the forwarded mail. It is however important that the original mail headers remain intact so that the recipients see who received the original mail and is able to reply (to all).HOW TO USE IT
You can now specify
:recipients. If given, the mail will be sent to them instead to those given in:to,:cc, and:bcc:CHANGES
The most effective way to implement this was to change
make-jmessageto do the job. This function was renamed tomake-jmessage-with-recipientsand now returns a map:The recipients are either those given in
:recipients, if any, or those given in:to,:cc, and:bcc.The function
recipientswas removed.I also added functions
smtp-send-single*andsmtp-connect*in order to write tests.