229 bool logged_in =
False;
240 const MaxDebugLine = 2048;
292 constructor(
string host, softint port, *code log, *code dbglog);
465 nothing
setWarningQueue(
int warning_ms,
int warning_bs, Queue queue,
auto arg, timeout min_ms = 1s);
507 final disconnectIntern();
538 sendDataIntern(data str);
545 sendData(
string str);
560 final hash sendCommand(
string str);
567 string readLine(timeout to);
581 forceDisconnectIntern();
*hash getRuntimeOptions()
returns runtime options
date getConnectTimeoutDate()
returns the connect timeout as a relative time value
const SmtpPort
default SMTP port
Definition: SmtpClient.qm.dox.h:247
the class that's used to communicate with an SMTP server and supports optional TLS/SSL encryption ...
Definition: SmtpClient.qm.dox.h:194
int getReadTimeoutMs()
returns the read timeout as an integer giving milliseconds
SmtpClient getImpl(bool connect=True, *hash rtopts)
returns an SmtpClient object
setConnectTimeout(timeout to)
sets the connect timeout
constructor(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
creates the SmtpConnection object
bool tls()
returns the TLS/SSL flag
const DefaultReadTimeout
15 second read timeout
Definition: SmtpClient.qm.dox.h:163
const DefaultConnectTimeout
30 second connect timeout
Definition: SmtpClient.qm.dox.h:166
destructor()
disconnects if connected and destroys the object
class for SMTP connections; returns an object of class SmtpClient for sending emails ...
Definition: SmtpClient.qm.dox.h:594
string getType()
returns "smtp"
for backwards-compatibility only
Definition: SmtpClient.qm.dox.h:185
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.
static SmtpConnection make(string name, string desc, string url, bool monitor, *hash opts, hash urlh)
static constructor
bool ssl()
returns the SSL connection flag
const EsmtpPort
default ESMTP port
Definition: SmtpClient.qm.dox.h:253
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:169
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:250
nothing setWarningQueue(int warning_ms, int warning_bs, Queue queue, auto arg, timeout min_ms=1s)
Sets a Queue object to receive socket warnings.
const Protocols
procotol config
Definition: SmtpClient.qm.dox.h:256
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.