NAME
Email::Send::126 - Send email with 126.com's SMTP
VERSION
Version 0.01
SYNOPSIS
use Email::Send::126;
my $smtp = Email::Send::126->new("john","mypasswd");
$smtp->sendmail($subject,$content,'abc@163.com','def@sina.com');
# with debug
my $smtp = Email::Send::126->new("john","mypasswd",1);
METHODS
new(username,password,[debug])
Create the object.
my $smtp = Email::Send::126->new("username","password");
# or with debug
my $smtp = Email::Send::126->new("username","password",1);
sendmail($subject,$content,@recepients)
Send the message. The subject and content can be Chinese, they will be encoded with UTF-8. The message content must be HTML syntax compatible, since this is a HTML email.
my $subject = "ä½ å¥½";
my $content = "<P>您好:</P><P>å�ƒé¥äº†å�—?</P>";
$smtp->sendmail($subject,$content,'foo@163.com');
# or send to many people
$smtp->sendmail($subject,$content,'foo@163.com','bar@sina.com','zhangsan@gmail.com');
AUTHOR
Peng Yong Hua <pyh@cpan.org>
BUGS/LIMITATIONS
If you have found bugs, please send email to <pyh@cpan.org>
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Email::Send::126
COPYRIGHT & LICENSE
Copyright 2011 Peng Yong Hua, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 101:
Non-ASCII character seen before =encoding in '"ä½ å¥½";'. Assuming CP1252