Mdc::Mail.pm - v1.00 Oct 26, 2004
This module povides an easy interface to the Net::SMTP module for sending email messages.
use Mdc::Mail;
my $MAIL = new Mdc::Mail( server => 'mailhost',
sender => 'me@mydomain' );
$MAIL->Send( to=> 'you@yourdomain',
subject => 'Test message',
content => 'Test message' );
my $MAIL = new Mdc::Mail( server => 'mailhost',
sender => 'me@mydomain',
xmailer=> 'My Program v1.0',
debug => 0,
timeout=> 15 );
Create new object reference. Arguments are to be supplied as HASH items.
$ok = $MAIL->Send( to => 'you@yourdomain',
cc => 'him@hisdomain',
bcc => 'her@herdomain',
replyto => 'me@mydomain',
subject => 'Test message',
content => 'Test message' );
Send a message to the specifed recipient. Return TRUE if successful. A comma separated list may be used for multiple recipients in the to, cc, or bcc fields.
1601 Parameter not defined
1602 SMTP server not found
1603 Sender's address not accepted
1604 Recipient's address not accepted
1605 Message not sent
Mdc::Mail Copyright (c) 2004 Mark K Mueller. All rights reserved.
Mark K Mueller PO Box 576705 Modesto, CA 95357 http://www.markmueller.com/