in reply to Changing the 'From:' header with Mail::Mailer

Mail::Mailer defaults to mail, which cannot specify the From header at all (and is also insecure!).

So, as others have suggested, use a different module (there are many {grin}) or be sure to specify an underlying mailer that can control the From, such as with:

my $mailer = Mail::Mailer->new("sendmail");
or
my $mailer = Mail::Mailer->new("smtp");

-- Randal L. Schwartz, Perl hacker