Copyright (C) 2000-2012 |
Manpages Mail::MailerSection: User Contributed Perl Documentation (3)Updated: 2003-09-19 Index Return to Main Contents NAMEMail::Mailer - Simple interface to electronic mailing mechanismsSYNOPSISuse Mail::Mailer; use Mail::Mailer qw(mail); $mailer = new Mail::Mailer; $mailer = new Mail::Mailer $type, @args; $mailer->open(\%headers); print $mailer $body; $mailer->close; DESCRIPTIONSends mail using any of the built-in methods. You can alter the behaviour of a method by passing $command to the "new" method.
"Mail::Mailer" will search for executables in the above order. The default mailer will be the first one found. ARGUMENTS"new" can optionally be given a $command and $type. $type is one "sendmail", "mail", ... given above. The meaning of $command depends on $type."open" is given a reference to a hash. The hash consists of key and value pairs, the key being the name of the header field (eg, "To"), and the value being the corresponding contents of the header field. The value can either be a scalar (eg, "gnat@frii.com") or a reference to an array of scalars ("eg, ['gnat@frii.com', 'Tim.Bunce@ig.co.uk']"). TO DOAssist formatting of fields in ...::rfc822:send_headers to ensure valid in the face of newlines and longlines etc.Secure all forms of send_headers() against hacker attack and invalid contents. Especially ``\n~...'' in ...::mail::send_headers. ENVIRONMENT VARIABLES
SEE ALSOMail::SendAUTHORSMaintained by Mark Overmeer <mailtools@overmeer.net>Original code written by Tim Bunce <Tim.Bunce@ig.co.uk>, with a kick start from Graham Barr <gbarr@pobox.com>. With contributions by Gerard Hickey <hickey@ctron.com> Small fix and documentation by Nathan Torkington <gnat@frii.com>.
IndexThis document was created by man2html, using the manual pages. Time: 20:19:37 GMT, April 26, 2024 |