aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsSendMail.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/settings/SettingsSendMail.h')
-rw-r--r--src/ui/settings/SettingsSendMail.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/settings/SettingsSendMail.h b/src/ui/settings/SettingsSendMail.h
index cc733f28..39ae0b71 100644
--- a/src/ui/settings/SettingsSendMail.h
+++ b/src/ui/settings/SettingsSendMail.h
@@ -5,6 +5,7 @@
#ifndef GPGFRONTEND_SETTINGSSENDMAIL_H
#define GPGFRONTEND_SETTINGSSENDMAIL_H
+#include "smtp/SmtpMime"
#include "ui/GpgFrontendUI.h"
class Ui_SendMailSettings;
@@ -22,6 +23,8 @@ class SendMailTab : public QWidget {
private slots:
+ void slotTestSMTPConnectionResult(const QString& result);
+
#ifdef SMTP_SUPPORT
void slotCheckConnection();
@@ -32,7 +35,8 @@ class SendMailTab : public QWidget {
std::shared_ptr<Ui_SendMailSettings> ui;
QRegularExpression re_email{
R"((?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]))"};
-
+ SmtpClient::ConnectionType connection_type_ =
+ SmtpClient::ConnectionType::TcpConnection;
signals:
void signalRestartNeeded(bool needed);