Sisimai::SMTP::Command(3pm) | User Contributed Perl Documentation | Sisimai::SMTP::Command(3pm) |
Sisimai::SMTP::Command - SMTP Command related utilities
use Sisimai::SMTP::Command; Sisimai::SMTP::Command->find('in reply to RCPT TO command'); # RCPT
Sisimai::SMTP::Command is a class for finding the last SMTP command from given error message.
test() checks whether an SMTP command is a valid command or not
print Sisimai::SMTP::Command->test('STARTTLS'); # 1 print Sisimai::SMTP::Command->test('NEKO'); # 0
find() returns the last SMTP command like the following:
print Sisimai::SMTP::Command->find('MAIL FROM: <> 250 OK RCPT TO: <...> 550'); # "RCPT"
azumakuniyuki
Copyright (C) 2022-2023 azumakuniyuki, All rights reserved.
This software is distributed under The BSD 2-Clause License.
2024-03-03 | perl v5.38.2 |