NAME
Email::Send::YYClouds - Send email using any smtp relay server
VERSION
Version 0.04
SYNOPSIS
use Email::Send::YYClouds;
use utf8;
my $msg = Email::Send::YYClouds->new();
$msg->send(recepient => ['user@yy.com','user@163.com'],
sender => 'foo@bar.com',
smtprelay => 'localhost',
subject => '测试邮件',
body => '<p>这是一封测试邮件。</p><p>欢迎来到perl的世界!</p>',
);
SUBROUTINES/METHODS
new
$msg = Email::Send::YYClouds->new();
$msg = Email::Send::YYClouds->new(debug=>1); # with debug open
send
$msg->send(recepient => [a list of recepients],
sender => 'foo@bar.com',
smtprelay => 'relay_server',
subject => $subject,
body => $body,
);
recepient - a list of email addresses for receiving message.
sender - from what address the message was sent.
smtprelay - relay server for smtp session, default to localhost.
subject - email subject, which can be either Chinese or non-Chinese.
body - message body, which can be either Chinese or non-Chinese. default with HTML type.
Please notice: you must have smtp realy server to approve the sending action.
Otherwise you will get error:
SMTP recipient() command failed:
5.7.1 <xxx@yy.com>: Relay access denied
Contact the sysops to authorize it.
AUTHOR
Ken Peng, <yhpeng at cpan.org>
BUGS
Please report any bugs or feature requests to bug-email-send-yyclouds at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Email-Send-YYClouds. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Email::Send::YYClouds
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Email-Send-YYClouds
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2016 Ken Peng.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.