mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 12:48:04 -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();
|
||||
|
||||
@@ -139,6 +139,8 @@ public:
|
||||
void setScanDirsLastPath(const QString &path);
|
||||
bool isMailNotificationEnabled() const;
|
||||
void setMailNotificationEnabled(bool enabled);
|
||||
QString getMailNotificationSender() const;
|
||||
void setMailNotificationSender(const QString &mail);
|
||||
QString getMailNotificationEmail() const;
|
||||
void setMailNotificationEmail(const QString &mail);
|
||||
QString getMailNotificationSMTP() const;
|
||||
|
||||
Reference in New Issue
Block a user