The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Email::Send::Zoho - Send email with Zoho's SMTP servers

VERSION

Version 0.01

SYNOPSIS

    use Email::Send::Zoho;
    my $smtp = Email::Send::Zoho->new('john@zoho.com','mypasswd');
    $smtp->sendmail($subject,$html_body,'foo@gmail.com','bar@hotmail.com');

METHODS

new($email, $password, [$debug])

Create the object.

The email acount can be at zoho.com, or any other domains you setup with zoho business application.

    my $smtp = Email::Send::Zoho->new('foo@zoho.com','password');
    # or with debug
    my $smtp = Email::Send::Zoho->new('foo@zoho.com','password',1);

sendmail($subject, $html_body, @recepients)

Send the message.

The subject and body can be Chinese (if so they must be UTF-8 string). They will be encoded with UTF-8 for sending.

The message body should be HTML syntax compatible, it will be sent with text/html format.

    my $subject = "Hello";
    my $html_body =<<EOF;
<html>
<body>
<h1>Hello there</h1>
<p>It's nice to see you.</p>
</body>
</html>
EOF

    $smtp->sendmail($subject,$html_body,'foo@gmail.com');
    # send to more than one people
    $smtp->sendmail($subject,$html_body,'foo@gmail.com','bar@hotmail.com', ...);
    

AUTHOR

Ken Peng <yhpeng@cpan.org>

BUGS/LIMITATIONS

If you have found bugs, please send email to <yhpeng@cpan.org>

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Email::Send::Zoho

COPYRIGHT & LICENSE

Copyright 2012 Ken Peng, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.