logo
Email::Send::IO(3) Send messages using IO operations

SYNOPSIS


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

DESCRIPTION

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".

You can globally change where IO is sent by modifying the @Email::Send::IO::IO package variable.

  @Email::Send::IO::IO = ('-'); # always append to STDOUT.

Examples

Sending to STDOUT.

  send IO => $message, '-';

Send to a socket.

  send IO => $message, 'server:1337';

AUTHOR

Current maintainer: Ricardo SIGNES, <[email protected]>.

Original author: Casey West, <[email protected]>.

COPYRIGHT

  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.

CONTENTS

  • SYNOPSIS
  • DESCRIPTION
  • AUTHOR
  • COPYRIGHT

LAST SEARCHED

  • BUS_CONFIG_INTR (9)
  • ALTER_CONVERSION (7)
  • EVP_PKEY_verify_recover (3)
  • otbgui_ExtractROI (1)
  • dh_installmime (1)
  • realpath (1)
  • xedit (1)
  • couchpy (1)
  • qmv (1)
  • bootparams (5)
  • DBD::Oracle::Object (3)