added support for sending email at a future time

solved ticket 2338