Damn, I apologize, you're right

I fixed and tested it working on my win10 VM, as have the GTKUI there already and had just did some work there anyway to help another user out, this was in my unofficial 2.0.3 and 2.0.4.dev38 installers. For some reason it doesn't work in linux, but perfectly in windows??? I will look more into it and post back if finding a solution and if not, then again, i'm sorry for getting ahead of myself.
Btw, for others interested, this is the error on linux with the changed version:
Code: Select all
18:00:43.856 [DEBUG ][deluge_notifications.core :177 ] Handler for TorrentFinishedEvent called for CORE
18:00:43.856 [DEBUG ][deluge_notifications.core :78 ] Spawning new thread to send email with subject: Finished Torrent "debian-10.7.0-amd64-netinst.iso": This email is to inform you that Deluge has finished downloading "debian-10.7.0-amd64-netinst.iso".
To stop receiving these alerts, simply turn off email notification in Deluge's preferences.
Thank you,
Deluge.
18:00:43.856 [DEBUG ][deluge_notifications.common :47 ] Calling CORE custom blink providers for TorrentFinishedEvent: ('cb6ecbc1853e57124937757967abad3fd136fe57',) {}
18:00:43.856 [DEBUG ][deluge_notifications.core :98 ] Email prepared
18:00:43.857 [DEBUG ][deluge_notifications.common :47 ] Calling CORE custom sound providers for TorrentFinishedEvent: ('cb6ecbc1853e57124937757967abad3fd136fe57',) {}
18:00:43.858 [DEBUG ][deluge_notifications.common :47 ] Calling CORE custom popup providers for TorrentFinishedEvent: ('cb6ecbc1853e57124937757967abad3fd136fe57',) {}
18:00:43.858 [ERROR ][deluge_notifications.core :128 ] There was an error sending the notification email: [Errno -2] Name or service not known
And on windows, it's same debug-log with just the last error-line replaced with the following success line:
Code: Select all
18:20:06 [DEBUG ][deluge_notifications.common :65 ] Notification success using email: Notification email sent.
@others, as stated above, the link only works on windows and deluge2 there, either built yourself or from my unofficial installer - sorry.
Edit: There's no special ifdef windows/linux code, and online several reports about code-sections utilizing smtplib(like here) works fine in windows, but fails on linux, and/or vice-versa. It's even exact same python version on both ends in my system and VM - 3.9.1, and same deluge version - 2.0.4.dev38 and same network as bridged in VM.