mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Allow SMTP sender to be set. Closes #7575.
This commit is contained in:
parent
acdb7a27dc
commit
fc0628d35b
7 changed files with 44 additions and 19 deletions
|
@ -308,6 +308,16 @@ void Preferences::setMailNotificationEnabled(bool enabled)
|
|||
setValue("Preferences/MailNotification/enabled", enabled);
|
||||
}
|
||||
|
||||
QString Preferences::getMailNotificationSender() const
|
||||
{
|
||||
return value("Preferences/MailNotification/sender", "qBittorrent_notification@example.com").toString();
|
||||
}
|
||||
|
||||
void Preferences::setMailNotificationSender(const QString &mail)
|
||||
{
|
||||
setValue("Preferences/MailNotification/sender", mail);
|
||||
}
|
||||
|
||||
QString Preferences::getMailNotificationEmail() const
|
||||
{
|
||||
return value("Preferences/MailNotification/email").toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue