KSmtp::SendJob Class

The SendJob class. More...

Header: #include <KSMTP/SendJob>
CMake: find_package(KPim6 REQUIRED COMPONENTS SMTP)
target_link_libraries(mytarget PRIVATE KPim6::SMTP)
Inherits: KSmtp::Job

Public Functions

SendJob(KSmtp::Session *session)
void setBcc(const QStringList &bcc)
void setCc(const QStringList &cc)
void setData(const QByteArray &data)
void setDeliveryStatusNotification(bool b)
void setFrom(const QString &from)
void setTo(const QStringList &to)
int size() const

Reimplemented Protected Functions

virtual void doStart() override
virtual void handleResponse(const KSmtp::ServerResponse &r) override

Detailed Description

Member Function Documentation

[explicit] SendJob::SendJob(KSmtp::Session *session)

[override virtual protected] void SendJob::doStart()

Reimplements: Job::doStart().

[override virtual protected] void SendJob::handleResponse(const KSmtp::ServerResponse &r)

Reimplements: Job::handleResponse(const KSmtp::ServerResponse &response).

void SendJob::setBcc(const QStringList &bcc)

Add recipients.

void SendJob::setCc(const QStringList &cc)

Add recipients.

void SendJob::setData(const QByteArray &data)

Set the actual message data.

void SendJob::setDeliveryStatusNotification(bool b)

Set Delivery Status Notification.

void SendJob::setFrom(const QString &from)

Set the sender email address

void SendJob::setTo(const QStringList &to)

Add recipients.

int SendJob::size() const

Returns size of the encoded message data.