mailtransport
#include <smtpsession.h>
Signals | |
| void | result (MailTransport::SmtpSession *session) |
Public Member Functions | |
| SmtpSession (QObject *parent=0) | |
| void | connectToHost (const KUrl &url) |
| void | disconnectFromHost (bool nice=true) |
| QString | errorMessage () const |
| void | sendMessage (const KUrl &destination, QIODevice *data) |
| void | setSaslMethod (const QString &method) |
| void | setUseTLS (bool useTLS) |
Detailed Description
Connection to an SMTP server.
Definition at line 33 of file smtpsession.h.
Constructor & Destructor Documentation
◆ SmtpSession()
|
explicit |
Definition at line 544 of file smtpsession.cpp.
◆ ~SmtpSession()
| SmtpSession::~SmtpSession | ( | ) |
Definition at line 563 of file smtpsession.cpp.
Member Function Documentation
◆ connectToHost()
| void SmtpSession::connectToHost | ( | const KUrl & | url | ) |
Open connection to host.
Definition at line 579 of file smtpsession.cpp.
◆ disconnectFromHost()
| void SmtpSession::disconnectFromHost | ( | bool | nice = true | ) |
Close the connection to the SMTP server.
Definition at line 585 of file smtpsession.cpp.
◆ errorMessage()
| QString SmtpSession::errorMessage | ( | ) | const |
Returns the error nmeesage, if any.
Definition at line 625 of file smtpsession.cpp.
◆ result
|
signal |
Emitted when an email transfer has been completed.
◆ sendMessage()
| void SmtpSession::sendMessage | ( | const KUrl & | destination, |
| QIODevice * | data ) |
Send a message.
Definition at line 602 of file smtpsession.cpp.
◆ setSaslMethod()
| void SmtpSession::setSaslMethod | ( | const QString & | method | ) |
Sets the SASL method used for authentication.
Definition at line 569 of file smtpsession.cpp.
◆ setUseTLS()
| void SmtpSession::setUseTLS | ( | bool | useTLS | ) |
Enable TLS encryption.
Definition at line 574 of file smtpsession.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jul 24 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.