Qore MailMessage Module Reference: MailMessage Module

Qore MailMessage Module Reference 1.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
MailMessage Module

The MailMessage module provides the MailMessage class for representing represents an email message. This module is used by the SmtpClient and Pop3Client modules.

To use this module, use `"%requires MailMessage"` in your code. See the SmtpClient and Pop3Client modules for examples of Qore code using this module

All the public symbols in the module are defined in the MailMessage namespace

The main classes are:

- Message: wraps an email message
- Attachment: used for files attached to a Message

Example:
  #!/usr/bin/env qore
  %requires MailMessage
  my MailMessage::Message $msg("Me, Myself, and I <me@email.com>", "My Subject");
  $msg.setBody("hello world!");
  $msg.addTO("My Best Friend <you@friend.com>");