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

    POE::Component::Client::SMTP 0.22

    Download button

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

    License / Price:

    Last Updated:

    Category:
    George Nistorica | More programs
    Perl Artistic License / FREE
    May 3rd, 2007, 12:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    POE::Component::Client::SMTP description

    A Perl module for asynchronous mail sending with POE.

    POE::Component::Client::SMTP is a Perl module for asynchronous mail sending with POE. Thus your program isn't blocking while busy talking with an (E)SMTP server.

    SYNOPSIS

    Warning! The following examples are not complete programs, and aren't designed to be run as full blown applications. Their purpose is to quickly introduce you to the module.

    For complete examples, check the 'eg' directory that can be found in the distribution's kit.

    A simple example:

    # load PoCoClient::SMTP
    use POE::Component::Client::SMTP;
    # spawn a session
    POE::Component::Client::SMTP->send(
    From => 'foo@baz.com',
    To => 'john@doe.net',
    Server => 'relay.mailer.net',
    SMTP_Success => 'callback_event_for_success',
    SMTP_Failure => 'callback_event_for_failure',
    );
    # and you are all set ;-)
    A more complex example:
    # load PoCoClient::SMTP
    use POE::Component::Client::SMTP;
    # spawn a session
    POE::Component::Client::SMTP->send(
    # Email related parameters
    From => 'foo@baz.com',
    To => [
    'john@doe.net',
    'andy@zzz.org',
    'peter@z.net',
    'george@g.com',
    ],
    Body => $email_body, # here's where your message is stored
    Server => 'relay.mailer.net',
    Timeout => 100, # 100 seconds before timeouting
    # POE related parameters
    Alias => 'pococlsmtpX',
    SMTP_Success => 'callback_event_for_success',
    SMTP_Failure => 'callback_event_for_failure',
    );
    # and you are all set


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    asynchronous mail sending | POE mail sending | Perl module | module | POE | asynchronous

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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