DOKK / manpages / debian 12 / libsisimai-perl / Sisimai::SMTP::Reply.3pm.en
Sisimai::SMTP::Reply(3pm) User Contributed Perl Documentation Sisimai::SMTP::Reply(3pm)

Sisimai::SMTP::Reply - SMTP reply code related class

    use Sisimai::SMTP::Reply;
    print Sisimai::SMTP::Reply->find('550 5.1.1 Unknown user');  # 550

Sisimai::SMTP::Reply is utilities for getting SMTP reply code value from given error message text.

"find()" returns an SMTP reply code value.

    print Sisimai::SMTP::Reply->find('5.0.0');                  # ''
    print Sisimai::SMTP::Reply->find('550 5.1.1 User unknown'); # 550
    print Sisimai::SMTP::Reply->find('421 Delivery Expired');   # 421

azumakuniyuki

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

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

2022-12-23 perl v5.36.0