Subject: | Caching mailaddress is problematic when sending as multiple senders |
I have a script that is using MIME::Entity (which uses MailTools to
actually send the mail) to send mail through various mail servers with
varying from addresses. The envelope from is taken from the result of
calling Mail::Util::mailaddress. Unfortunately, some of those mail
server insist that I use an envelope from that matches their mail
domain, so I need to adjust it depending on the server I'm using.
However, the mailaddress function caches the value it determined on
first use.
Please provide a way to either clear this cached value, explicitly set
the returned value or don't cache the value at all.
Thanks, Rolf.