Help for this page

Select Code to Download


  1. or download this
        ### Cat (Unix only):
        if (1) {
        my $path = "$gifpath";
        $msg->attach(Subject => "Cat path to pipe, and read that",
                 Path => $path,
    
  2. or download this
        ### Do something like this in your 'main':
        if ($I_DONT_HAVE_SENDMAIL) {
    ...
         
        ### Now this will do the right thing:
        $msg->send;         ### will now use Net::SMTP as shown above
    
  3. or download this
    #!/usr/bin/perl -w
    
    ...
    exit(&main ? 0 : -1);
    1;
    __END__