Copyright (C) 2000-2012 |
Manpages Mail::SendSection: User Contributed Perl Documentation (3)Updated: 2002-03-23 Index Return to Main Contents NAMEMail::Send - Simple electronic mail interfaceSYNOPSISrequire Mail::Send; $msg = new Mail::Send; $msg = new Mail::Send Subject=>'example subject', To=>'timbo'; $msg->to('user@host'); $msg->subject('example subject'); $msg->cc('user@host'); $msg->bcc('someone@else'); $msg->set($header, @values); $msg->add($header, @values); $msg->delete($header); # Launch mailer and set headers. The filehandle returned # by open() is an instance of the Mail::Mailer class. # Arguments to the open() method are passed to the Mail::Mailer # constructor. $fh = $msg->open; print $fh "Body of message"; $fh->close; # complete the message and send it $fh->cancel; # not yet implemented DESCRIPTIONSEE ALSOMail::MailerAUTHORSMaintained 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>
IndexThis document was created by man2html, using the manual pages. Time: 22:59:25 GMT, April 25, 2024 |