Email::Send::IO - Send messages using IO operations
use Email::Send; my $mailer = Email::Send->new({mailer => 'IO'}); $mailer->send($message); # To STDERR $mailer->mailer_args('filename.txt'); $mailer->send($message); # write file
This is a mailer for Email::Send that will send a message using IO operations. By default it sends mail to STDERR, very useful for debugging. The IO functionality is built upon IO::All. Any additional arguments passed to send will be used as arguments to IO::All::io.
Email::Send
IO::All
send
IO::All::io
You can globally change where IO is sent by modifying the @Email::Send::IO::IO package variable.
@Email::Send::IO::IO
@Email::Send::IO::IO = ('-'); # always append to STDOUT.
Sending to STDOUT.
send IO => $message, '-';
Send to a socket.
send IO => $message, 'server:1337';
Email::Send, IO::All, perl.
Current maintainer: Ricardo SIGNES, <rjbs@cpan.org>.
Original author: Casey West, <casey@geeknest.com>.
Copyright (c) 2005 Casey West. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Email::Send, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Send
CPAN shell
perl -MCPAN -e shell install Email::Send
For more information on module installation, please visit the detailed CPAN module installation guide.