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...
In reply to Cannot seem to override a "From" address using MIME::Lite by thezip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |