VMime
|
Public Member Functions | |
void | addCommand (shared_ptr< SMTPCommand > cmd) |
bool | isFinished () const |
shared_ptr< SMTPCommand > | getLastCommandSent () const |
void | writeToSocket (shared_ptr< socket > sok, shared_ptr< tracer > tr) |
const string | getText () const |
const string | getTraceText () const |
Static Public Member Functions | |
static shared_ptr< SMTPCommandSet > | create (const bool pipeline) |
![]() | |
static shared_ptr< SMTPCommand > | HELO (const string &hostname) |
static shared_ptr< SMTPCommand > | EHLO (const string &hostname) |
static shared_ptr< SMTPCommand > | AUTH (const string &mechName) |
static shared_ptr< SMTPCommand > | AUTH (const string &mechName, const std::string &initialResponse) |
static shared_ptr< SMTPCommand > | STARTTLS () |
static shared_ptr< SMTPCommand > | MAIL (const mailbox &mbox, const bool utf8) |
static shared_ptr< SMTPCommand > | MAIL (const mailbox &mbox, const bool utf8, const size_t size) |
static shared_ptr< SMTPCommand > | RCPT (const mailbox &mbox, const bool utf8) |
static shared_ptr< SMTPCommand > | RSET () |
static shared_ptr< SMTPCommand > | DATA () |
static shared_ptr< SMTPCommand > | BDAT (const size_t chunkSize, const bool last) |
static shared_ptr< SMTPCommand > | NOOP () |
static shared_ptr< SMTPCommand > | QUIT () |
static shared_ptr< SMTPCommand > | createCommand (const string &text, const string &traceText="") |
Additional Inherited Members | |
![]() | |
SMTPCommand (const string &text, const string &traceText) | |
SMTPCommand (const SMTPCommand &) | |
![]() | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
A set of SMTP commands, which may be sent all at once to the server if pipelining is supported.
void addCommand | ( | shared_ptr< SMTPCommand > | cmd | ) |
Adds a new command to this set.
If one or more comments have already been sent to the server, an exception will be thrown.
cmd | command to add |
|
static |
Creates a new set of SMTP commands.
pipeline | set to true if the server supports pipelining |
shared_ptr< SMTPCommand > getLastCommandSent | ( | ) | const |
Returns the last command which has been sent.
|
virtual |
Returns the full text of the command, including command name and parameters (if any).
Reimplemented from SMTPCommand.
|
virtual |
Returns the full text of the command, suitable for outputing to the tracer.
Reimplemented from SMTPCommand.
bool isFinished | ( | ) | const |
Tests whether all commands have been sent.
Sends this command to the specified socket.
sok | socket to which the command will be written |
tr | tracer |
Reimplemented from SMTPCommand.