Thread Email::Sender::Failure - Wie komme ich an die Fehlermeldung (13 answers)
Opened by Perlentaucher at 2024-02-09 22:34

haj
 2024-02-10 12:44
#195868 #195868
User since
2015-01-07
531 Artikel
BenutzerIn

user image
Im Fehlerfall gibt's kein Return-Objekt. Aus der Beschreibung von CPAN:Email::Sender::Manual::QuickStart (hervorhebung von mir):
Quote
If there is an error sending the message, an exception will be thrown. It will be an object belonging to the class Email::Sender::Failure.

Also, wie rosti schon schrieb: So etwas wie CPAN:Try::Tiny kann das abfangen. Oder, ab Perl 5.34, try und catch aus dem Perl-Core.

View full thread Email::Sender::Failure - Wie komme ich an die Fehlermeldung