• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

mailtransport

  • MailTransport
  • SmtpSession
Signals | Public Member Functions | List of all members
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.

Definition at line 33 of file smtpsession.h.

Constructor & Destructor Documentation

◆ SmtpSession()

SmtpSession::SmtpSession ( QObject * parent = 0)
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

void MailTransport::SmtpSession::result ( MailTransport::SmtpSession * session)
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:
  • smtpsession.h
  • smtpsession.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailtransport

Skip menu "mailtransport"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal