We have a client that is part of a larger government organization, which essentially means using the SMTP server with their government email address is not an option. What we'd like to do is configure the mail settings to use a Reply-To header in the message, and otherwise use our company's SMTP server with a relevant email address for the From header.
This would be trivial to do for any given form handler that sends email, but the problem as I see it is there's no central place to change this because Plone/Zope's configuration just does not have a concept for it. (On a lower level, this might be because python's smtplib API has to/from/message parameters, and Reply-To needs to be part of the message). I don't like the idea of monkey patching every place that Plone out-of-the-box sends email. One of the other options I am thinking of is to monkey patch either Products.MailHost or zope.sendmail to always take the From address and inject it in the message as a Reply-To header, and then change the From name to an address that is associated with our SMTP server. This doesn't appeal to me either, because it is probably error prone and also because zope.sendmail looks like it is in active development. Anyone have a better idea?