Subject: | Mail::Internet does not appear to honor the MailFrom parameter |
On Windows NT, I am using Mail::Internet v1.58 to send messages constructed by MIME-Tools. I have a fussy SMTP MTA that did not accept the message because the MAIL FROM envelope sender was set to postmaster@ESMTP.
The documentation of Mail::Internet states that the envelope sender can be set with the MailFrom attribute. Tracing through the code, however, appears to indicate that the attribute is never inspected. (It is being passed from the smtpsend() method call from my MIME::Entity object and sent to the Mail::Internet constructor).
I solved the problem by setting the $ENV{MAILADDRESS} environment variable to a sensible value and the message was delivered.