Haineko::SMTPD::Relay::Discard - Discard mailer class
Discard any message
use Haineko::SMTPD::Relay::Discard; my $e = Haineko::SMTPD::Relay::Discard->new; my $s = $e->sendmail; print $s; # always return 1 print $e->response->error; # always return 0 print $e->response->dsn; # always return undef warn Data::Dumper::Dumper $e->response; $VAR1 = bless( { 'dsn' => undef 'error' => 0, 'code' => '200', 'message' => [ 'Discard' ], 'command' => 'DATA' }, 'Haineko::SMTPD::Response' );
new() is a constructor of Haineko::SMTPD::Relay::Discard
my $e = Haineko::SMTPD::Relay::Discard->new;
sendmail() will discard any message
my $e = Haineko::SMTPD::Relay::Discard->new; print $e->sendmail; # 1, message discarded print Dumper $e->response; # Dumps Haineko::SMTPD::Response object
https://github.com/azumakuniyuki/Haineko
azumakuniyuki <perl.org [at] azumakuniyuki.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Haineko, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haineko
CPAN shell
perl -MCPAN -e shell install Haineko
For more information on module installation, please visit the detailed CPAN module installation guide.