|
Public Types |
enum | Flags { NODATE = 1
} |
Public Member Functions |
| Smtp (VirtStream &hOut, const std::string &logfilename="") throw (net_error) |
| Smtp (VirtStream &hOut, std::ofstream *log=NULL) throw (net_error) |
virtual | ~Smtp () |
virtual void | connect (const Url &to, short int port=25) throw (net_error) |
virtual void | helo (const std::string &helostr="") throw (smtp_error) |
void | mailFrom (const std::string &email, const std::string &name="") throw (smtp_error) |
void | rcptTo (const std::string &email) throw (smtp_error) |
void | rcptTo (std::istream_iterator< std::string > &begin, std::istream_iterator< std::string > &end) throw (smtp_error) |
void | bccTo (const std::string &email) throw (smtp_error) |
void | data (const std::string &data, const std::string &subject) throw (smtp_error) |
void | addHeaders (const std::string &headers) |
void | reset () throw (smtp_error) |
virtual void | quit () |
void | setFlags (Flags newFlags) |
Flags | getFlags () const |
Protected Member Functions |
std::string | getResult () throw (smtp_error) |
std::string | addRFCHeaders (const std::string &subject) |
void | buildLogEntry (const std::string &data) |
void | log (const std::string &msg) |
Static Protected Member Functions |
static std::string | substLfWithCrLf (const std::string &str) |
Protected Attributes |
bool | m_bConnected |
Flags | flags |
std::ofstream * | m_log |
bool | m_bOwnLog |
VirtStream * | m_out |
ZeSocket | m_sock |
std::string | from |
std::list< std::string > | to |
std::string | additionalHeaders |