Notification Mail wait
Created at 20 Dec 2023, 20:00
Notification Mail wait
20 Dec 2023, 20:00
Hello all,
If algo meets some condition in my Bot, I need send an email and stop bot.
If (something)
{
Notifications.SendEmail(….);
Stop();
}
It looks good. If I debug this code, it works and email is sent. But If I run it, it doesnt work. I supposed email sending has its own thread and if bot stops, this thread is cancelled, so email is not sent.
So does anybody know the right solution please - how to wait for email was really sent ?
Thanks.
Alex