diff --git a/demos/demo2/sendemail.ui b/demos/demo2/sendemail.ui new file mode 100644 index 0000000..4d9c1d3 --- /dev/null +++ b/demos/demo2/sendemail.ui @@ -0,0 +1,323 @@ + + + SendEmail + + + + 0 + 0 + 710 + 556 + + + + Form + + + + + 10 + 12 + 694 + 534 + + + + + + + + + + 87 + 17 + + + + + 87 + 17 + + + + SMTP server: + + + + + + + + + + + 34 + 17 + + + + + 34 + 17 + + + + Port: + + + + + + + 99999 + + + + + + + SSL + + + + + + + + + + + + + + 50 + false + + + + Use authentification + + + + + + + + 21 + 21 + + + + + 21 + 21 + + + + + + + false + + + + + + + + + + + Username: + + + + + + + + 211 + 27 + + + + + 211 + 27 + + + + + + + + Password: + + + + + + + QLineEdit::Password + + + + + + + + + + + + 75 + true + + + + Mime E-mail + + + + + + + + + + 81 + 0 + + + + + 81 + 16777215 + + + + Sender: + + + + + + + + + + + + + + + 81 + 0 + + + + + 81 + 16777215 + + + + Recipients: + + + + + + + + + + + + + + + 81 + 0 + + + + + 81 + 16777215 + + + + Subject: + + + + + + + + + + + + Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextEditable|Qt::TextEditorInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + + + + + Attachments: + + + + + + + + 97 + 0 + + + + + 97 + 16777215 + + + + Add File + + + + + + + + + + 16777215 + 64 + + + + + + + + + + Send Email + + + + + + + + + diff --git a/src/smtpclient.cpp b/src/smtpclient.cpp index 6786979..0ec4c70 100644 --- a/src/smtpclient.cpp +++ b/src/smtpclient.cpp @@ -12,7 +12,7 @@ /* [1] Constructors and destructors */ -SmtpClient::SmtpClient(QString host, int port, ConnectionType ct) : +SmtpClient::SmtpClient(const QString & host, int port, ConnectionType ct) : authMethod(AuthPlain), connectionTimeout(5000), responseTimeout(5000) diff --git a/src/smtpclient.h b/src/smtpclient.h index 6bfd29c..5340a47 100644 --- a/src/smtpclient.h +++ b/src/smtpclient.h @@ -40,7 +40,7 @@ public: /* [1] Constructors and Destructors */ - SmtpClient(QString host = "locahost", int port = 25, ConnectionType ct = TcpConnection); + SmtpClient(const QString & host = "locahost", int port = 25, ConnectionType ct = TcpConnection); ~SmtpClient();