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.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Mail::DWIM 0.02

    Download button

    No screenshots available
    Downloads: 311  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mike Schilli | More programs
    Perl Artistic License / FREE
    September 8th, 2007, 01:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Mail::DWIM description

    Mail::DWIM is a Do-What-I-Mean Mailer.

    Mail::DWIM is a Do-What-I-Mean Mailer.

    SYNOPSIS

    use Mail::DWIM qw(mail);

    mail(
    to => 'foo@bar.com'
    subject => 'test message',
    text => 'test message text'
    );

    Mail::DWIM makes it easy to send email. You just name the recipient, the subject line and the mail text and Mail::DWIM does the rest.

    This module isn't for processing massive amounts of email. It is for sending casual emails without worrying about technical details.

    Mail::DWIM lets you store commonly used settings (like the default sender email address or the transport mechanism) in a local configuration file, so that you don't have to repeat settings in your program code every time you want to send out an email. You are certainly free to override the default settings if required.

    Mail::DWIM uses defaults wherever possible. So if you say

    use Mail::DWIM qw(mail);

    mail(
    to => 'foo@bar.com'
    subject => 'test message',
    text => 'test message text',
    );

    that's enough for the mailer to send out an email to the specified address. There's no from field, so Mail::DWIM uses 'user@domain.com' where user is the current Unix user and domain.com is the domain set in the Perl configuration (Config.pm). If you want to specify a different 'From:' field, go ahead:

    mail(
    from => 'me@mydomain.com',
    to => 'foo@bar.com'
    subject => 'test message',
    text => 'test message text',
    );

    By default, Mail::DWIM connects to a running sendmail daemon to deliver the mail. But you can also specify an SMTP server:

    mail(
    to => 'foo@bar.com'
    subject => 'test message',
    text => 'test message text',
    transport => 'smtp',
    smtp_server => 'smtp.foobar.com',
    );

    On a given system, these settings need to be specified only once and put into a configuration file. All Mail::DWIM instances running on this system will pick them up as default settings.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    send email | send messages | Perl module | mail | e-mail | messages

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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