For some applications sending emails should be done in a timely manner, for instance when sending a validation code by email.
If for some reasons the sending process is not running mails will remain in the queue until the process() function is called. Which may happen a day later for instance. It would not be practical to send 1 day delayed validation code emails in our case.
I propose, as an enhancement, to add a public attribute to the class to define a timeout. The sending process shall then ignore all pending emails where the sentTime is less than now() - timeout
For some applications sending emails should be done in a timely manner, for instance when sending a validation code by email.
If for some reasons the sending process is not running mails will remain in the queue until the process() function is called. Which may happen a day later for instance. It would not be practical to send 1 day delayed validation code emails in our case.
I propose, as an enhancement, to add a public attribute to the class to define a timeout. The sending process shall then ignore all pending emails where the sentTime is less than now() - timeout