MailTransport::SmtpSession Class Reference
#include <smtpsession.h>
Inherits QObject.
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.
Member Function Documentation
void SmtpSession::connectToHost | ( | const KUrl & | url | ) |
Open connection to host.
Definition at line 560 of file smtpsession.cpp.
void SmtpSession::disconnectFromHost | ( | bool | nice = true | ) |
Close the connection to the SMTP server.
Definition at line 566 of file smtpsession.cpp.
QString SmtpSession::errorMessage | ( | ) | const |
Returns the error nmeesage, if any.
Definition at line 605 of file smtpsession.cpp.
void MailTransport::SmtpSession::result | ( | MailTransport::SmtpSession * | session | ) | [signal] |
Emitted when an email transfer has been completed.
void SmtpSession::sendMessage | ( | const KUrl & | destination, |
QIODevice * | data | ||
) |
Send a message.
Definition at line 583 of file smtpsession.cpp.
void SmtpSession::setSaslMethod | ( | const QString & | method | ) |
Sets the SASL method used for authentication.
Definition at line 550 of file smtpsession.cpp.
void SmtpSession::setUseTLS | ( | bool | useTLS | ) |
Enable TLS encryption.
Definition at line 555 of file smtpsession.cpp.
The documentation for this class was generated from the following files: