neversaint has asked for the wisdom of the Perl Monks concerning the following question:
use MIME::Lite; my $for_whom = "somebody@tolove.com"; my $sender_email = "lonely@girl.com"; my $message = "Forget me not"; my $subject = "FOO BAR"; send_email_noattach($for_whom,$sender_email,$message,$subject); sub send_email_noattach { # using MIME::Lite my ( $target_add, $my_add, $mssg, $subject ) = @_; my $msg = MIME::Lite->new( From => $my_add, To => $target_add, Subject => $subject, Type => 'multipart/plain', ); $msg->attach( Type => 'TEXT', Data => $mssg ); $msg->send(); return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Looking for Console Friendly Mailer Module
by gellyfish (Monsignor) on May 20, 2006 at 08:31 UTC | |
|
Re: Looking for Console Friendly Mailer Module
by pKai (Priest) on May 20, 2006 at 10:13 UTC | |
|
Re: Looking for Console Friendly Mailer Module
by bart (Canon) on May 20, 2006 at 14:59 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |