I'm a beginner in using the POCO library and I want to send an e-mail over a given SMTP server. The mail samples in the Net and NetSSL_OpenSSL library are very useful, so I could successful implement the desired functionality with the classes Poco::Net::SMTPClientSession, Poco::Net::SecureSMTPClientSession and the method Poco::Net::SMTPClientSession::sendMessage().
Now, I would additional implement the following functionalities:
1) Inform the user about the send mail progress. The user should see how many bytes have been currently sent and the total of bytes that will be sent. So, for that purpose I need an appropriate event, that I can handle for the GUI.
2) Cancel the send mail operation. The user should have the possibility to cancel the mail sending.
How can I realize the above functionalities?
I would be grateful for your help. Thanks in advance.