Skip to content

Provide option for email notification when torrent added#24289

Closed
LewpyUK wants to merge 1 commit into
qbittorrent:masterfrom
LewpyUK:SMTPExtraNotifications
Closed

Provide option for email notification when torrent added#24289
LewpyUK wants to merge 1 commit into
qbittorrent:masterfrom
LewpyUK:SMTPExtraNotifications

Conversation

@LewpyUK

@LewpyUK LewpyUK commented May 17, 2026

Copy link
Copy Markdown
Contributor

Provide the options to send email notifications when a torrent is added and when a torrent finishes.
Currently an email notification is only sent when a torrent finishes.
If you are running qBittorrent with automations, such as RSS feeds & rules, then it is very useful to receive an email when a torrent is added as well as when it finishes, so you can track the progress remotely: receiving an email for a torrent being added that isn't followed by an email saying the torrent is completed alerts you that something needs investigated.
It's personally something I find very useful and I added to my local build of qBittorrent as soon as I made code modifications.

I've arranged them as checkboxes so that it can be extended in the future for other torrent events, if desired.
I've added logic checks so that if only one checkbox is ticked, it is disabled to prevent it being unticked itself, ensuring that at least one options is ticked. It is re-enabled when the other option is ticked.
There is logic to capture the case that someone manages to set both options off (hand edit the config file, or similar), and then it doesn't disable any boxes until something is selected.
Also, a future option could be to have buttons beside each option that allows for customising the email message (perhaps parsed in a similar way to the Run External Program just below).

GUI

image

WebGUI

image

@LewpyUK LewpyUK force-pushed the SMTPExtraNotifications branch from e36893b to 4752c3f Compare May 17, 2026 21:53
@LewpyUK LewpyUK marked this pull request as ready for review May 17, 2026 22:18
@LewpyUK LewpyUK changed the title Add option for email notifications on start of torrent Provide option for email notification when torrent added May 18, 2026
@LewpyUK LewpyUK marked this pull request as draft May 18, 2026 06:46
@LewpyUK LewpyUK force-pushed the SMTPExtraNotifications branch 2 times, most recently from 7f24e2a to d96ba49 Compare May 18, 2026 12:33
@LewpyUK LewpyUK marked this pull request as ready for review May 18, 2026 13:10
@LewpyUK LewpyUK marked this pull request as draft May 21, 2026 16:41
@LewpyUK LewpyUK marked this pull request as ready for review May 21, 2026 17:22
@LewpyUK LewpyUK force-pushed the SMTPExtraNotifications branch 2 times, most recently from 7a52568 to 2640ae1 Compare May 24, 2026 10:44
Introduce `mail_notification_on_add` and `mail_notification_on_end` options for email notifications. Update GUI and WebUI to allow users to configure these settings. Extend WebAPI endpoints (`app/preferences` and `app/setPreferences`) to support the new options. Update backend logic to respect these preferences and enhance the UI with checkboxes and tooltips for better usability.
@LewpyUK LewpyUK force-pushed the SMTPExtraNotifications branch from 2640ae1 to 35e8d9f Compare May 26, 2026 18:14
@LewpyUK LewpyUK marked this pull request as draft June 11, 2026 19:02
@LewpyUK

LewpyUK commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

If #24485 goes through, this will not be needed as it could then be done as a plugin

@glassez

glassez commented Jun 11, 2026

Copy link
Copy Markdown
Member

If #24485 goes through, this will not be needed as it could then be done as a plugin

Yes, that is my intention. As I said in #24485, I am against adding such "features" to the qBittorrent core.
Do you have any good reasons to disagree with my reasoning about the usefulness of plug-in support?

@LewpyUK

LewpyUK commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

If #24485 goes through, this will not be needed as it could then be done as a plugin

Yes, that is my intention. As I said in #24485, I am against adding such "features" to the qBittorrent core. Do you have any good reasons to disagree with my reasoning about the usefulness of plug-in support?

I personally think the plugin system is a good idea 😃
If it had already existed, I wouldn't have needed to code this function to the program for my own purposes, and that would be a good thing.
I will close this PR because either this won't be needed or it won't be allowed in to the core program (I do understand your stance on that).

@LewpyUK LewpyUK closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants