215 bool logged_in =
False;
226 const MaxDebugLine = 2048;
278 constructor(
string host, softint port, *code log, *code dbglog);
451 nothing
setWarningQueue(
int warning_ms,
int warning_bs, Queue queue, any arg, timeout min_ms = 1s);
491 final private disconnectIntern();
494 private log(
string msg);
497 private logDbg(
string msg);
500 private connectIntern();
503 private loginIntern();
507 private sendDataIntern(data str);
511 private sendData(
string str);
515 private sendData(
binary b);
520 final private hash sendCommand(
string str);
524 private string readLine(timeout to);
532 private forceDisconnectIntern();
date getConnectTimeoutDate()
returns the connect timeout as a relative time value
const SmtpPort
default SMTP port
Definition: SmtpClient.qm.dox.h:233
the class that's used to communicate with an SMTP server and supports optional TLS/SSL encryption ...
Definition: SmtpClient.qm.dox.h:180
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:149
const DefaultConnectTimeout
30 second connect timeout
Definition: SmtpClient.qm.dox.h:152
destructor()
disconnects if connected and destroys the object
for backwards-compatibility only
Definition: SmtpClient.qm.dox.h:171
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:239
date getReadTimeoutDate()
returns the read timeout as a relative time value
for backwards-compatibility and convenience
Definition: SmtpClient.qm.dox.h:155
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:236
const Protocols
procotol config
Definition: SmtpClient.qm.dox.h:242
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.