Help for this page

Select Code to Download


  1. or download this
    sub Send_Msg {
       my ($to, $from, $subject, $body) = @_;
    ...
        ## the following is the offending statement
        $msg->send || die "MIME::Lite->send failed: $!\n";
    }
    
  2. or download this
       $msg = MIME::Lite->new(From=>...);
       $msg->send || die "you DON'T have mail!";
    
  3. or download this
        eval { $msg->send };
        die "MIME::Lite->send failed: $@\n" if $@;