thezip has asked for the wisdom of the Perl Monks concerning the following question:
G'day monks,
I'm using MIME::Lite to send an email message on a FreeBSD 5.3 server, and I have specified a value for the "From" key, as illustrated in the method below:sub send { my $self = shift; my $args = shift; my $email = $args->{email} || $self->{EMAIL};; my $subject = $args->{subject} || "Subject not specified"; my $message = $args->{message} || "No message specified"; my $from = $args->{from} || $self->{FROM}; my $msg = MIME::Lite->new( From => $from, To => $email, Subject => $subject, Data => $message ); $msg->send(); }
Unfortunately, when I send the message, it fails to override the sender's name, instead sending the mail literally from "Mail Sender".
How can I override the default behavior of the mailer agent so that I can specify a new sender?
This is certainly something that is configured elsewhere in the OS, but I'm just not sure where to find it...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot seem to override a "From" address using MIME::Lite
by imp (Priest) on Nov 15, 2006 at 20:26 UTC | |
by thezip (Vicar) on Nov 15, 2006 at 20:38 UTC | |
by imp (Priest) on Nov 15, 2006 at 20:53 UTC |