Email Notifications after download completion - qBittorrent 5.1.0

Windows specific questions, problems.
Post Reply
mikeprocess
Newbie
Newbie
Posts: 4
Joined: Sat May 03, 2025 6:12 pm

Email Notifications after download completion - qBittorrent 5.1.0

Post by mikeprocess »

Trying to get "email notification after download completion" working on my Windows 10 desktop with qBittorrent 5.1.0.
It's in Options > download section.

Can anyone tell me what I'm doing wrong? Here is a screenshot....
email notification from qBittorrent.JPG
email notification from qBittorrent.JPG (97.84 KiB) Viewed 6668 times

Thanks for any suggestions, this one sure has me baffled.
User avatar
Peter
Administrator
Administrator
Posts: 3039
Joined: Wed Jul 07, 2010 6:14 pm

Re: Email Notifications after download completion - qBittorrent 5.1.0

Post by Peter »

Gmail does not let you send mails like that.
You have to use App Passwords - https://support.google.com/accounts/answer/185833?hl=en
mikeprocess
Newbie
Newbie
Posts: 4
Joined: Sat May 03, 2025 6:12 pm

Re: Email Notifications after download completion - qBittorrent 5.1.0

Post by mikeprocess »

Thanks Peter. After some time I've finally managed to get an app password. Though I am still having trouble getting notifications to work on aBittorrent. Is the mail server for gmail: smtp.gmail.com Can you send from the gmail account that you have the app password for to ANY other email address..gmail or hotmail or whatever? In qBittorrent should I have "this server requires a secure connection" checked? And "authentication" checked? (I assume that should be enabled) Thanks Oh yes, do you know if when entering the app password in qBittorrent it is 16 digits. Should one remove the spaces between the digits?
User avatar
Peter
Administrator
Administrator
Posts: 3039
Joined: Wed Jul 07, 2010 6:14 pm

Re: Email Notifications after download completion - qBittorrent 5.1.0

Post by Peter »

mikeprocess wrote: Wed May 07, 2025 10:10 pm Thanks Peter. After some time I've finally managed to get an app password. Though I am still having trouble getting notifications to work on aBittorrent. Is the mail server for gmail: smtp.gmail.com Can you send from the gmail account that you have the app password for to ANY other email address..gmail or hotmail or whatever? In qBittorrent should I have "this server requires a secure connection" checked? And "authentication" checked? (I assume that should be enabled) Thanks Oh yes, do you know if when entering the app password in qBittorrent it is 16 digits. Should one remove the spaces between the digits?
- The email server is smtp.gmail.com
- Can you send to other emails? Yes. Though, it might count as spam. Since its an automated email basically.
- "This server requires secure" DON'T tick it.

Explained: It depends. Email has several protocols that work on various ports. It's a bit complicated but basically, regular email is sent over port 25, with no encryption. Port 587 is used for secure TLS connection and 465 is used for SSL. Now, why am I saying all this? Because the port would change if we tick that port. Get it? With no encryption, we need the regular port 25. With SSL, we need 465.

I checked the source code ( https://github.com/qbittorrent/qBittorr ... t/smtp.cpp ).
- If you tick the encryption box, it should work, because it defaults to 465 and Gmail uses 465.
- If you don't tick the box, it defaults to port 25, which is again correct for unencrypted Gmail SMTP.
- However, you can also specify a custom port. For example: smtp.mymail.com:12345

- App password spaces: DO NOT remove the spaces. That's part of password. Also save the app password in a secure location, because you can't check them again. I recommend using KeepassXC with some cloud save like Onedrive, Google Drive, whatever tickles your fancy.

Use the test email function.
Good luck.
mikeprocess
Newbie
Newbie
Posts: 4
Joined: Sat May 03, 2025 6:12 pm

Re: Email Notifications after download completion - qBittorrent 5.1.0

Post by mikeprocess »

Thanks for the info. I unchecked "This server requires secure" and tried a test email. It worked. I got an email notification. but just once. The next time I tried a test I got: "Email Notification Error: Connection timed out" even though I didn't change any settings. Now you have to admit, that's odd :)

I'll keep trying.
Thanks again!
User avatar
Peter
Administrator
Administrator
Posts: 3039
Joined: Wed Jul 07, 2010 6:14 pm

Re: Email Notifications after download completion - qBittorrent 5.1.0

Post by Peter »

I mean, honestly, Gmail is not really supposed to be used for automation like this.
mikeprocess
Newbie
Newbie
Posts: 4
Joined: Sat May 03, 2025 6:12 pm

Re: Email Notifications after download completion - qBittorrent 5.1.0

Post by mikeprocess »

>Gmail is not really supposed to be used for automation like this.

Thanks for all the help. Well if Gmail wasn't "built" for this type of notification...neither was Hotmail or Bell.net. I tried email accounts I have with those two servers without any luck. I might install a mail server on my Synology NAS and try that.

Cheers
User avatar
Peter
Administrator
Administrator
Posts: 3039
Joined: Wed Jul 07, 2010 6:14 pm

Re: Email Notifications after download completion - qBittorrent 5.1.0

Post by Peter »

mikeprocess wrote: Fri May 09, 2025 4:09 pm >Gmail is not really supposed to be used for automation like this.

Thanks for all the help. Well if Gmail wasn't "built" for this type of notification...neither was Hotmail or Bell.net. I tried email accounts I have with those two servers without any luck. I might install a mail server on my Synology NAS and try that.

Cheers
You can use services like Mailgun. Or if you have any kind of web hosting service paid for, they also offer email accounts. I'd go down this route.
Post Reply