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 > Perl Modules

    Dancer::Plugin::Email 1.0000

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Naveed Massjouni | More programs
    Perl Artistic License / FREE
    September 22nd, 2012, 19:55 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Dancer::Plugin::Email description

    Simple email handling for Dancer applications using Email::Stuff!

    Dancer::Plugin::Email is a Perl module that provides an easy way of handling text or html email messages with or without attachments. Simply define how you wish to send the email in your application's YAML configuration file, then call the email keyword passing the necessary parameters as outlined above.

    SYNOPSIS

     use Dancer;
     use Dancer::Plugin::Email;
     
     post '/contact' => sub {
     email {
     to => '...',
     subject => '...',
     message => $msg,
     attach => [ '/path/to/file' ]
     };
     };


    Important Note! The default email format is plain-text, this can be changed to html by setting the option 'type' to 'html' in the config file or as an argument in the hashref passed to the email keyword. The following are options that can be passed to the email function:

     # send message to
     to => $email_recipient
     
     # send messages from
     from => $mail_sender
     
     # email subject
     subject => 'email subject line'
     
     # message body
     message => 'html or plain-text data'
     message => {
     text => $text_message,
     html => $html_messase,
     # type must be 'multi'
     }
     
     # email message content type
     type => 'text'
     type => 'html'
     type => 'multi'
     
     # carbon-copy other email addresses
     cc => 'user@site.com'
     cc => 'user_a@site.com, user_b@site.com, user_c@site.com'
     cc => join ', ', @email_addresses
     
     # blind carbon-copy other email addresses
     bcc => 'user@site.com'
     bcc => 'user_a@site.com, user_b@site.com, user_c@site.com'
     bcc => join ', ', @email_addresses
     
     # specify where email responses should be directed
     reply_to => 'other_email@website.com'
     
     # attach files to the email
     attach => [ '/path/to/file1', '/path/to/file2' ]
     
     # send additional (specialized) headers
     headers => {
     "X-Mailer" => "Dancer::Plugin::Email 1.23456789"
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    email messages | Perl module | Perl | email | messages

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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