212 bool logged_in =
False;
223 const MaxDebugLine = 2048;
275 constructor(
string host, softint port, *code log, *code dbglog);
448 nothing
setWarningQueue(
int warning_ms,
int warning_bs, Queue queue, any arg, timeout min_ms = 1s);
488 final private disconnectIntern();
491 private log(
string msg);
494 private logDbg(
string msg);
497 private connectIntern();
500 private loginIntern();
504 private sendDataIntern(data str);
508 private sendData(
string str);
512 private sendData(
binary b);
517 final private hash sendCommand(
string str);
521 private string readLine(timeout to);
529 private forceDisconnectIntern();
date getConnectTimeoutDate()
returns the connect timeout as a relative time value
const SmtpPort
default SMTP port
Definition: SmtpClient.qm.dox.h:230
the class that's used to communicate with an SMTP server and supports optional TLS/SSL encryption ...
Definition: SmtpClient.qm.dox.h:177
int getReadTimeoutMs()
returns the read timeout as an integer giving milliseconds
setUserPass(string user, string pass)
sets the username and password for authenticated connections
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:146
const DefaultConnectTimeout
30 second connect timeout
Definition: SmtpClient.qm.dox.h:149
destructor()
disconnects if connected and destroys the object
for backwards-compatibility only
Definition: SmtpClient.qm.dox.h:168
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:236
date getReadTimeoutDate()
returns the read timeout as a relative time value
for backwards-compatibility and convenience
Definition: SmtpClient.qm.dox.h:152
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:233
const Protocols
procotol config
Definition: SmtpClient.qm.dox.h:239
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.