220 bool logged_in =
False;
231 const MaxDebugLine = 2048;
283 constructor(
string host, softint port, *code log, *code dbglog);
456 nothing
setWarningQueue(
int warning_ms,
int warning_bs, Queue queue, any arg, timeout min_ms = 1s);
496 final private disconnectIntern();
499 private log(
string msg);
502 private logDbg(
string msg);
505 private connectIntern();
508 private loginIntern();
512 private sendDataIntern(data str);
516 private sendData(
string str);
520 private sendData(
binary b);
525 final private hash sendCommand(
string str);
529 private string readLine(timeout to);
537 private forceDisconnectIntern();
date getConnectTimeoutDate()
returns the connect timeout as a relative time value
const SmtpPort
default SMTP port
Definition: SmtpClient.qm.dox.h:238
the class that's used to communicate with an SMTP server and supports optional TLS/SSL encryption ...
Definition: SmtpClient.qm.dox.h:185
int getReadTimeoutMs()
returns the read timeout as an integer giving milliseconds
setConnectTimeout(timeout to)
sets the connect timeout
nothing setWarningQueue(int warning_ms, int warning_bs, Queue queue, any arg, timeout min_ms=1s)
Sets a Queue object to receive socket warnings.
bool tls()
returns the TLS/SSL flag
const DefaultReadTimeout
15 second read timeout
Definition: SmtpClient.qm.dox.h:154
const DefaultConnectTimeout
30 second connect timeout
Definition: SmtpClient.qm.dox.h:157
destructor()
disconnects if connected and destroys the object
for backwards-compatibility only
Definition: SmtpClient.qm.dox.h:176
constructor(string host, softint port, *code log, *code dbglog)
creates the SmtpClient object
forceDisconnect()
force disconnect of socket without error
nothing clearWarningQueue()
Removes any warning Queue object from the Socket.
bool ssl()
returns the SSL connection flag
const EsmtpPort
default ESMTP port
Definition: SmtpClient.qm.dox.h:244
setUserPass(string n_user, string n_pass)
sets the username and password for authenticated connections
date getReadTimeoutDate()
returns the read timeout as a relative time value
for backwards-compatibility and convenience
Definition: SmtpClient.qm.dox.h:160
disconnect()
disconnect from the server
bool isConnected()
return connection status
bool test()
returns the test mode flag
constructor(string sender, string subject)
creates a Message object from the arguments given; this variant of the constructor is designed to be ...
hash sendMessage(MailMessage::Message message)
send a Message to the server
connect()
Connect to the server with the connection parameters set in the constructor()
const SmtpsPort
default SMTPS port; note that this port is currently assigned to source-specific multicast audio/vide...
Definition: SmtpClient.qm.dox.h:241
const Protocols
procotol config
Definition: SmtpClient.qm.dox.h:247
int getConnectTimeoutMs()
returns the connect timeout as an integer giving milliseconds
setReadTimeout(timeout to)
sets the read timeout
clearStats()
Clears performance statistics.
hash getUsageInfo()
Returns performance statistics for the socket.