POE::Component::Client::SMTPPOE::Component::Client::SMTP is a Perl module for asynchronous mail sending with POE. | |
Download |
POE::Component::Client::SMTP Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- George Nistorica
- Publisher web site:
- http://search.cpan.org/~ultradm/POE-Component-Client-SMTP-0.14/lib/POE/Component/Client/SMTP.pm
POE::Component::Client::SMTP Tags
POE::Component::Client::SMTP Description
POE::Component::Client::SMTP is 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.SYNOPSISWarning! 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 => , 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 Requirements: · Perl
POE::Component::Client::SMTP Related Software