#include <oc_SMTP.h>


Public Member Functions | |
| oc_SMTP (string address, int port=25) | |
| virtual | ~oc_SMTP () |
| bool | Command (string cmdIn) |
| bool | Response (string expected="250") |
| bool | helo (string domain) |
| bool | mail_from (string sender) |
| bool | rcpt_to (string recipient) |
| bool | data (void) |
| bool | operator() (string msg) |
| bool | end_data (void) |
| bool | quit (void) |
| bool | reset (void) |
| bool | noop (void) |
| bool | vrfy (string address) |
| oc_SMTP (string address, int port=25) | |
| virtual | ~oc_SMTP () |
| bool | Command (string cmdIn) |
| bool | Response (string expected="250") |
| bool | helo (string domain) |
| bool | mail_from (string sender) |
| bool | rcpt_to (string recipient) |
| bool | data (void) |
| bool | operator() (string msg) |
| bool | end_data (void) |
| bool | quit (void) |
| bool | reset (void) |
| bool | noop (void) |
| bool | vrfy (string address) |
Public Attributes | |
| bool | isConnected |
| ocString | response |
| string | error |
Private Attributes | |
| string | crlf |
| string | sender |
Definition at line 66 of file oc_SMTP.h.
| oc_SMTP::oc_SMTP | ( | string | address, | |
| int | port = 25 | |||
| ) | [inline] |
| oc_SMTP::oc_SMTP | ( | string | address, | |
| int | port = 25 | |||
| ) | [inline] |
| bool oc_SMTP::Command | ( | string | cmdIn | ) | [inline] |
Definition at line 89 of file oc_SMTP.h.
References crlf, and ocSocket::Write().
Referenced by data(), end_data(), helo(), mail_from(), noop(), operator()(), quit(), rcpt_to(), reset(), and vrfy().
| bool oc_SMTP::Response | ( | string | expected = "250" |
) | [inline] |
Definition at line 109 of file oc_SMTP.h.
References error, ocString::parse(), ocString::parseInit(), ocSocket::ReadLine(), and response.
Referenced by data(), end_data(), helo(), mail_from(), noop(), oc_SMTP(), quit(), rcpt_to(), reset(), and vrfy().
| bool oc_SMTP::helo | ( | string | domain | ) | [inline] |
Definition at line 126 of file oc_SMTP.h.
References Command(), and Response().
Referenced by ocSendMail::openRoute().
| bool oc_SMTP::mail_from | ( | string | sender | ) | [inline] |
Definition at line 138 of file oc_SMTP.h.
References Command(), and Response().
Referenced by ocSendMail::openRoute().
| bool oc_SMTP::rcpt_to | ( | string | recipient | ) | [inline] |
Definition at line 152 of file oc_SMTP.h.
References Command(), and Response().
Referenced by ocSendMail::openRoute().
| bool oc_SMTP::data | ( | void | ) | [inline] |
Definition at line 166 of file oc_SMTP.h.
References Command(), Response(), and writelog2.
Referenced by ocSendMail::openRoute().
| bool oc_SMTP::operator() | ( | string | msg | ) | [inline] |
| bool oc_SMTP::end_data | ( | void | ) | [inline] |
Definition at line 191 of file oc_SMTP.h.
References Command(), crlf, and Response().
Referenced by ocSendMail::send().
| bool oc_SMTP::quit | ( | void | ) | [inline] |
Definition at line 204 of file oc_SMTP.h.
References Command(), and Response().
Referenced by ocSendMail::openRoute(), and ocSendMail::send().
| bool oc_SMTP::reset | ( | void | ) | [inline] |
| bool oc_SMTP::noop | ( | void | ) | [inline] |
| bool oc_SMTP::vrfy | ( | string | address | ) | [inline] |
| bool oc_SMTP::Command | ( | string | cmdIn | ) | [inline] |
| bool oc_SMTP::Response | ( | string | expected = "250" |
) | [inline] |
Definition at line 109 of file oc_SMTP.h.
References error, ocString::parse(), ocString::parseInit(), ocSocket::ReadLine(), and response.
| bool oc_SMTP::helo | ( | string | domain | ) | [inline] |
| bool oc_SMTP::mail_from | ( | string | sender | ) | [inline] |
| bool oc_SMTP::rcpt_to | ( | string | recipient | ) | [inline] |
| bool oc_SMTP::data | ( | void | ) | [inline] |
| bool oc_SMTP::operator() | ( | string | msg | ) | [inline] |
| bool oc_SMTP::end_data | ( | void | ) | [inline] |
| bool oc_SMTP::quit | ( | void | ) | [inline] |
| bool oc_SMTP::reset | ( | void | ) | [inline] |
| bool oc_SMTP::noop | ( | void | ) | [inline] |
| bool oc_SMTP::vrfy | ( | string | address | ) | [inline] |
string oc_SMTP::crlf [private] |
string oc_SMTP::sender [private] |
| bool oc_SMTP::isConnected |
Definition at line 74 of file oc_SMTP.h.
Referenced by oc_SMTP(), ocSendMail::openRoute(), and ocSendMail::send().
| string oc_SMTP::error |
Reimplemented from ocSocket.
Definition at line 76 of file oc_SMTP.h.
Referenced by ocSendMail::openRoute(), and Response().
1.5.5