mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Allow SMTP sender to be set. Closes #7575.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user