NAME

Net::SMTP::Verify::Result - address verification result for a recipient

VERSION

version 1.04

SYNOPSIS

  my $result = Net::SMTP::Verify::Result->new(
    address => 'rcpt@domain.de',
    host => 'mx.domain.de',
    has_starttls => 1,
    has_tlsa => 1,
    has_openpgpkey => 1,
    smtp_code => 250,
    smtp_message => '2.1.5 Ok',
  );

  $result->is_success # returns 1

DESCRIPTION

A result class for Net::SMTP::Verify recipient checks.

ATTRIBUTES

address ( required )

The smtp address checked.

host

The MTA that returned queried.

has_starttls

If STARTTLS is available.

has_tlsa

If a TLSA record for the host exists.

has_openpgpkey

If a OPENPGPKEY record for the address exists.

smtp_code

The SMTP code returned.

smtp_message

The SMTP message returned.

error

Set if an error occured during the check.

METHODS

is_success() =head2 is_error() =head2 is_temp_error() =head2 is_perm_error()

Returns 1 if the result is an success,error,temporary error or permanent error.

AUTHOR

Markus Benning <ich@markusbenning.de>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Markus Benning <ich@markusbenning.de>.

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991