Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
So before my job runs, I only want to email operations to notify them prior, so that they know. Can I use shift as I am with the subject? thanks!sub mailme { my $message = shift; my $sub = shift; my $msg = MIME::Lite->new( From => 'MAILER-DAEMON root', To => 'UX Team <root>', To => 'operations@xxxx.com', Subject => "$sub", Type => 'multipart/related' ); $msg->attach( Type =>'TEXT', Data =>"See attachment!" ); $msg->attach( Type => 'TEXT', Disposition => 'attachment', Path => "$message", Filename => "$message" ); $msg->send; } mailme($log, $sub);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mime lite specific email
by ikegami (Patriarch) on Aug 04, 2010 at 16:08 UTC | |
|
Re: mime lite specific email
by zek152 (Pilgrim) on Aug 04, 2010 at 13:49 UTC |