oc_SMTP Class Reference

#include <oc_SMTP.h>

Inheritance diagram for oc_SMTP:

Inheritance graph
[legend]
Collaboration diagram for oc_SMTP:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 66 of file oc_SMTP.h.


Constructor & Destructor Documentation

oc_SMTP::oc_SMTP ( string  address,
int  port = 25 
) [inline]

Definition at line 78 of file oc_SMTP.h.

References isConnected, and Response().

virtual oc_SMTP::~oc_SMTP (  )  [inline, virtual]

Definition at line 84 of file oc_SMTP.h.

oc_SMTP::oc_SMTP ( string  address,
int  port = 25 
) [inline]

Definition at line 78 of file oc_SMTP.h.

References isConnected, and Response().

virtual oc_SMTP::~oc_SMTP (  )  [inline, virtual]

Definition at line 84 of file oc_SMTP.h.


Member Function Documentation

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]

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]

Definition at line 179 of file oc_SMTP.h.

References Command().

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]

Definition at line 215 of file oc_SMTP.h.

References Command(), and Response().

bool oc_SMTP::noop ( void   )  [inline]

Definition at line 226 of file oc_SMTP.h.

References Command(), and Response().

bool oc_SMTP::vrfy ( string  address  )  [inline]

Definition at line 236 of file oc_SMTP.h.

References Command(), and Response().

bool oc_SMTP::Command ( string  cmdIn  )  [inline]

Definition at line 89 of file oc_SMTP.h.

References crlf, and ocSocket::Write().

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]

Definition at line 126 of file oc_SMTP.h.

References Command(), and Response().

bool oc_SMTP::mail_from ( string  sender  )  [inline]

Definition at line 138 of file oc_SMTP.h.

References Command(), and Response().

bool oc_SMTP::rcpt_to ( string  recipient  )  [inline]

Definition at line 152 of file oc_SMTP.h.

References Command(), and Response().

bool oc_SMTP::data ( void   )  [inline]

Definition at line 166 of file oc_SMTP.h.

References Command(), Response(), and writelog2.

bool oc_SMTP::operator() ( string  msg  )  [inline]

Definition at line 179 of file oc_SMTP.h.

References Command().

bool oc_SMTP::end_data ( void   )  [inline]

Definition at line 191 of file oc_SMTP.h.

References Command(), crlf, and Response().

bool oc_SMTP::quit ( void   )  [inline]

Definition at line 204 of file oc_SMTP.h.

References Command(), and Response().

bool oc_SMTP::reset ( void   )  [inline]

Definition at line 215 of file oc_SMTP.h.

References Command(), and Response().

bool oc_SMTP::noop ( void   )  [inline]

Definition at line 226 of file oc_SMTP.h.

References Command(), and Response().

bool oc_SMTP::vrfy ( string  address  )  [inline]

Definition at line 236 of file oc_SMTP.h.

References Command(), and Response().


Member Data Documentation

string oc_SMTP::crlf [private]

Definition at line 69 of file oc_SMTP.h.

Referenced by Command(), and end_data().

string oc_SMTP::sender [private]

Definition at line 70 of file oc_SMTP.h.

Definition at line 74 of file oc_SMTP.h.

Referenced by oc_SMTP(), ocSendMail::openRoute(), and ocSendMail::send().

Definition at line 75 of file oc_SMTP.h.

Referenced by ocSendMail::openRoute(), and Response().

Reimplemented from ocSocket.

Definition at line 76 of file oc_SMTP.h.

Referenced by ocSendMail::openRoute(), and Response().


The documentation for this class was generated from the following files:

Generated on Sat Aug 15 12:48:30 2009 for w3systemsDevelopment by  doxygen 1.5.5