Allow SMTP sender to be set. Closes #7575.

This commit is contained in:
Chocobo1 2017-10-25 20:58:01 +08:00
parent acdb7a27dc
commit fc0628d35b
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
7 changed files with 44 additions and 19 deletions

View file

@ -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();