Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Mail::File 0.08

    Download button

    No screenshots available
    Downloads: 145  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Barbie | More programs
    Perl Artistic License / FREE
    February 22nd, 2011, 02:57 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Mail::File description

    Mail module which writes to a flat file

    Mail::File is a Perl module that was written to overcome the problem of sending mail messages, where there is no mail application is available.

    The aim of the module is to write messages to a text file, that will format the contents to include all the key elements of the message, such that the file can be transported to another machine, which is then capable of sending mail messages.

    Notes that the filename template defaults to 'mail-XXXXXX.eml'.

    SYNOPSIS

     use Mail::File;

     my $mail = Mail::File->new(template => 'mailXXXX.tmp');
     $mail->From('me@example.com');
     $mail->To('you@example.com');
     $mail->Cc('Them < them@example.com >');
     $mail->Bcc('Us < us@example.com >; anybody@example.com');
     $mail->Subject('Blah Blah Blah');
     $mail->Body('Yadda Yadda Yadda');
     $mail->XHeader('X-Header' => 'Blah Blah Blah');
     $mail->send;

     # Or use a hash
     my %hash = (
     From => 'me@example.com',
     To => 'you@example.com',
     Cc => 'Them < them@example.com >',
     Bcc => 'Us < us@example.com >, anybody@example.com',
     Subject => 'Blah Blah Blah',
     Body => 'Yadda Yadda Yadda',
     'X-Header' => 'Blah Blah Blah',
     template => 'mailXXXX.tmp'
     );

     my $mail = Mail::File->new(%hash);
     $mail->send;



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    mail module | flat file | Perl module | mail | Perl | flat

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM