Tripletail
view release on metacpan or search on metacpan
lib/Tripletail/Sendmail/Esmtp.pm view on Meta::CPAN
# -----------------------------------------------------------------------------
# Tripletail::Sendmail::Esmtp - Forcast esmtpã使ç¨ããã¡ã¼ã«éä¿¡
# -----------------------------------------------------------------------------
package Tripletail::Sendmail::Esmtp;
use base 'Tripletail::Sendmail';
use strict;
use warnings;
use Tripletail;
1;
sub _new {
my $class = shift;
my $group = shift;
my $this = bless {} => $class;
$this->{group} = $group;
$this->{dbgroup} = $TL->INI->get($group => 'dbgroup');
$this->{resend} = $TL->INI->get($group => 'resend', 1);
$this->{resendlimit} = $TL->INI->get($group => 'resendlimit', '24 hours');
$this;
}
sub send {
my $this = shift;
my $data = $this->_getoptSend(@_);
my $DB = $TL->getDB($this->{dbgroup});
foreach my $rcpt (@{$data->{rcpt}}) {
$DB->execute(
q{
INSERT INTO mailsend
(start, resend, mailfrom, rcptto, hourlimit, resendlimit, data)
VALUES (NOW(), ? , ? , ? , '' , ? , ? )
},
$this->{resend} ? 'yes' : 'no',
$data->{from},
$rcpt,
$TL->parsePeriod($this->{resendlimit}),
$data->{data},
);
}
$this;
}
__END__
=encoding utf-8
=for stopwords
Forcast
Ini
YMIRLINK
dbgroup
esmtp
ini
resendlimit
setTimeout
=head1 NAME
Tripletail::Sendmail::Esmtp - Forcast esmtp ã使ç¨ããã¡ã¼ã«éä¿¡
=head1 DESCRIPTION
ï¼ï¼æ³¨æï¼ï¼
ãã®ã¯ã©ã¹ãå©ç¨ããã«ã¯Esmtpãå¿
è¦ã§ãã
Esmtpã¨ã¯ãã¦ãã«ãªã³ã¯æ ªå¼ä¼ç¤¾ã販売ãã¦ããé«éã¡ã¼ã«é
ä¿¡ã·ã¹ãã ã§ãã
( run in 1.230 second using v1.01-cache-2.11-cpan-d7f47b0818f )