|
Qore SmtpClient Module Reference
1.0
|
The SmtpClient module provides a set of classes that can be used for easy communication with SMTP servers for sending emails.
To use this module, use "%requires SmtpClient" in your code. See examples/email.q for an example program using this module
All the public symbols in the module are defined in the SmtpClient namespace
The main classes are:
%requires SmtpClient my SmtpClient::Message $msg("The Sender <sender@email.com>", "My Subject"); $msg.setBody($body); $msg.addTO("My Best Friend <you@friend.com>"); $msg.attach($filename, MimeTypeText, $data); my code $log = sub (string str) {printf("%y: %s\n", now_us(), str);} my SmtpClient::SmtpClient $smtp("smtp.example.com", $log, $log); $smtp.sendMessage($msg);