Last updated
Last updated
(plugins.mail)
The mail
plugin enables sending and receiving emails, with additional support for attachments, email validation, and property configuration. It supports creating binary and text-based attachments, specifying MIME types, and handling exceptions that occur during mail operations. The plugin can process incoming mail from POP3 accounts, with options for leaving messages on the server, retrieving headers, and filtering by sent date.
Emails can be sent individually or in bulk. Bulk emails are optimized to prevent responses such as "out of office" messages. The plugin supports HTML-formatted messages, multiple recipients, and optional CC/BCC configurations. Additional customization is available through SMTP host settings and override properties. Attachments can be added as single files or arrays, providing flexibility for diverse email content. Utility methods like email address validation and plain address extraction are also available.
Type | Name | Summary |
---|---|---|
Type | Name | Summary |
---|---|---|
Returns the value of the mail.from property which is set on the admin page.
Type String
Sample
Creates a binary attachment object.
Parameters
Returns: Attachment
Sample
Creates a binary attachment object.
Parameters
Returns: Attachment
Sample