Subject: | [enhancement] Error system, timeout, banner method |
Date: | Tue, 5 Aug 2014 13:35:07 +0200 (CEST) |
To: | bug-Email-Send-SMTP-Gmail [...] rt.cpan.org |
From: | lyle [...] netcourrier.com |
Hi,
First thanks for your work. My ticket is not a bug but about some enhancement.
When there is a problem, the library send back '-1' and not the object. Could we have something near other modules (like DBI, ...): returns 'undef' and have a method and a variable (for the 'new') to get the error ?
Right now, we need to redirect 'stdout' in a variable.
Moreover, could we have also the last error code and message (from smtp server) ? The 'banner' function and set the 'timeout' in 'new' ? :)
Best regards,