NAME
Email::Send::YYClouds - Send simple mail using smtp relay server
VERSION
Version 0.18
SYNOPSIS
This module sends text based simple mail with any smtp relay server, default localhost.
If you find any issues in using the module, please don't hesitate to email me: pyh@gmx.fr
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',
subject => 'test mail',
body => 'test message body, 测试邮件',
);
SUBROUTINES/METHODS
new
$msg = Email::Send::YYClouds->new();
$msg = Email::Send::YYClouds->new(debug=>1); # enable debug
send
$msg->send(recepient => [a list of recepients],
sender => 'user@your_domain',
smtprelay => 'relay_server',
type => 'text/plain',
subject => 'mail subject',
body => 'message 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.
type - content_type, default to text/plain, can be others like text/html.
subject - email subject, which can be either English or UTF-8 characters.
body - message body, which can be either English or UTF-8 characters.
Please note: you must have smtp realy server to open the sending permission to you.
Otherwise you will get error:
SMTP recipient() command failed:
5.7.1 <xxx@yy.com>: Relay access denied
Contact your sysadmin 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.