lucee.Component
cbmailservices.models.AbstractProtocol
models.protocols.FileProtocol
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com ---- This protocol stores the mail in html files in the directory specified via the configuration properties - filePath : The directory location to store the mail files - autoExpand : Defaults to true to do an expandPath() on the incoming filePath
| Constructor Summary | |
|---|---|
|
init([struct properties='[runtime expression]'])
Initialize the File protocol. |
|
| Method Summary | |
|---|---|
private any
|
getMailContent(any mail)
Generate the mail content to store in the file. |
struct
|
send(cbmailservices.models.Mail<cbmailservices.models.Mail> payload)
Send mails to html files on disk. |
| Methods inherited from class cbmailservices.models.AbstractProtocol |
|---|
| getLog, getName, getProperties, getProperty, propertyExists, setLog, setName, setProperties, setProperty |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Initialize the File protocol
properties - A map of configuration properties for the protocol| Method Detail |
|---|
Generate the mail content to store in the file
mailSend mails to html files on disk The return is a struct with two keys - `error` - A boolean flag if the message was sent or not - `messages` - An array of error messages the protocol stored if any
send
in class
cbmailservices.models.AbstractProtocol
payload - The paylod object to send the message with