SMTP transport service. More...


Public Member Functions | |
| SMTPTransport (ref< session > sess, ref< security::authenticator > auth, const bool secured=false) | |
| ~SMTPTransport () | |
| const string | getProtocolName () const |
| const serviceInfos & | getInfos () const |
| void | connect () |
| bool | isConnected () const |
| void | disconnect () |
| void | noop () |
| void | send (const mailbox &expeditor, const mailboxList &recipients, utility::inputStream &is, const utility::stream::size_type size, utility::progressListener *progress=NULL) |
| bool | isSecuredConnection () const |
| ref< connectionInfos > | getConnectionInfos () const |
Static Public Member Functions | |
| static const serviceInfos & | getInfosInstance () |
SMTP transport service.
| SMTPTransport | ( | ref< session > | sess, | |
| ref< security::authenticator > | auth, | |||
| const bool | secured = false | |||
| ) |
| ~SMTPTransport | ( | ) |
References SMTPTransport::disconnect(), and SMTPTransport::isConnected().
| void connect | ( | ) | [virtual] |
Connect to service.
Implements service.
References GET_PROPERTY, service::getCertificateVerifier(), service::getSocketFactory(), service::getTimeoutHandlerFactory(), HAS_PROPERTY, and SMTPTransport::isConnected().
| void disconnect | ( | ) | [virtual] |
Disconnect from service.
Implements service.
References SMTPTransport::isConnected().
Referenced by SMTPTransport::~SMTPTransport().
| ref< connectionInfos > getConnectionInfos | ( | ) | const [virtual] |
| const serviceInfos & getInfos | ( | ) | const [virtual] |
Return information about this service.
Implements service.
Reimplemented in SMTPSTransport.
| const serviceInfos & getInfosInstance | ( | ) | [static] |
Reimplemented in SMTPSTransport.
| const string getProtocolName | ( | ) | const [virtual] |
Return the protocol name of this service.
Implements service.
Reimplemented in SMTPSTransport.
| bool isConnected | ( | ) | const [virtual] |
Test whether this service is connected.
Implements service.
Referenced by SMTPTransport::connect(), SMTPTransport::disconnect(), SMTPTransport::noop(), SMTPTransport::send(), and SMTPTransport::~SMTPTransport().
| bool isSecuredConnection | ( | ) | const [virtual] |
Check whether the connection is secured.
Implements service.
| void noop | ( | ) | [virtual] |
Do nothing but ensure the server do not disconnect (for example, this can reset the auto-logout timer on the server, if one exists).
Implements service.
References SMTPTransport::isConnected().
| void send | ( | const mailbox & | expeditor, | |
| const mailboxList & | recipients, | |||
| utility::inputStream & | is, | |||
| const utility::stream::size_type | size, | |||
| utility::progressListener * | progress = NULL | |||
| ) | [virtual] |
Send a message over this transport service.
| expeditor | expeditor mailbox | |
| recipients | list of recipient mailboxes | |
| is | input stream provding message data (header + body) | |
| size | size of the message data | |
| progress | progress listener, or NULL if not used |
Implements transport.
References vmime::utility::bufferedStreamCopy(), dotFilteredOutputStream::flush(), mailbox::getEmail(), mailboxList::getMailboxAt(), mailboxList::getMailboxCount(), SMTPTransport::isConnected(), mailbox::isEmpty(), and mailboxList::isEmpty().
1.6.2