The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Email::Send::YYClouds - Send email using YYClouds' smtp server

VERSION

Version 0.02

SYNOPSIS

    use Email::Send::YYClouds;

    my $msg = Email::Send::YYClouds->new();
    $msg->send(recepient => ['user@yy.com','user@163.com'],
               subject => '测试邮件',
               body => '<p>这是一封测试邮件</p><p>Just a test message for you</p>',
               is_html => 1,
          );

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],
               subject => $subject,
               body => $body,
               is_html => $boolean,
          );

Default sender should always be noreply@yyclouds.com, you can't change it.

recepient - a list of email addresses for receiving message.

subject - email subject, which can be either Chinese or non-Chinese.

body - message body, which can be either Chinese or non-Chinese.

is_html - default 0, it must be set to 1 if this is a html message.

Please notice: Only when MTA relay has authorized the sender host from where you can send messages.

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:

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.