It would be nice to return the failed email address in a command_error exception:
SMPTTransport.cpp line 586: - throw exceptions::command_error("RCPT TO", resp->getText()); + throw exceptions::command_error("RCPT TO", resp->getText(), mbox.getEmail());
Then ex.what() returns: Error while executing command 'RCPT TO': hugo.egon@somewhere.com.
Best Regards Achim
Hello,
Nice idea! Done, thank you.
Vincent
Log in to post a comment.
It would be nice to return the failed email address in a command_error exception:
SMPTTransport.cpp line 586:
- throw exceptions::command_error("RCPT TO", resp->getText());
+ throw exceptions::command_error("RCPT TO", resp->getText(), mbox.getEmail());
Then ex.what() returns:
Error while executing command 'RCPT TO': hugo.egon@somewhere.com.
Best Regards
Achim
Hello,
Nice idea!
Done, thank you.
Vincent