GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Sisimai::SMTP::Failure(3) User Contributed Perl Documentation Sisimai::SMTP::Failure(3)

Sisimai::SMTP::Failure - SMTP Errors related utilities

    use Sisimai::SMTP::Failure;
    print Sisimai::SMTP::Failure->is_temporary('421 SMTP error message');
    print Sisimai::SMTP::Failure->is_permanent('550 SMTP error message');
    print Sisimai::SMTP::Failure->is_softbounce('mailboxfull', 4.2.2 mailbox full');
    print Sisimai::SMTP::Failure->is_hardbounce('userunknown', 5.1.1 user not found');

"Sisimai::SMTP::Failure" provide methods to check an SMTP errors.

is_permanent() method checks the given string points an permanent error or not.

    print Sisimai::SMTP::Failure->is_permanent('5.1.1 User unknown'); # 1
    print Sisimai::SMTP::Failure->is_permanent('4.2.2 Mailbox Full'); # 0
    print Sisimai::SMTP::Failure->is_permanent('2.1.5 Message Sent'); # 0

is_temporary() method checks the given string points an temporary error or not.

    print Sisimai::SMTP::Failure->is_permanent('5.1.1 User unknown'); # 0
    print Sisimai::SMTP::Failure->is_permanent('4.2.2 Mailbox Full'); # 1
    print Sisimai::SMTP::Failure->is_permanent('2.1.5 Message Sent'); # 0

"is_hardbounce(String, String)"

is_hardbounce() method checks the given reason is a hard bounce or not

    print Sisimai::SMTP::Failure->is_hardbounce('5.1.1 User unknown'); # 1
    print Sisimai::SMTP::Failure->is_hardbounce('4.2.2 Mailbox Full'); # 0
    print Sisimai::SMTP::Failure->is_hardbounce('5.7.27 DKIM failed'); # 0

is_softbounce() method checks the given reason is a soft bounce or not

    print Sisimai::SMTP::Failure->is_softbounce('5.1.1 User unknown'); # 0
    print Sisimai::SMTP::Failure->is_softbounce('4.2.2 Mailbox Full'); # 1
    print Sisimai::SMTP::Failure->is_softbounce('5.7.27 DKIM failed'); # 1

azumakuniyuki

Copyright (C) 2016-2018,2020-2022,2024 azumakuniyuki, All rights reserved.

This software is distributed under The BSD 2-Clause License.

2025-03-28 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.