config/coldbox.cfcconfiguration file instead of the top level
mailServicesstruct. Now you will use the
protocolstruct is now removed. You will have to register the protocol by name in the
mailersstruct and add a
defaultProtocolkey which points to the one you define in the mailers.
defaultProtocolis added and no
mailersthen the mail services module will register a
cfmailprotocol for you as the
errorArraywould be returned from the
send()method. Now, the
mailService.send( mail )). The previously available struct can be accessed using
mail.getResults(). (Be sure to see the changes to the
errorArrayhas been renamed to
messages. Which is still an array but can be used by any protocol to register an array of messages about the mailing for any status.
config()method was renamed to
messageIDto be consistent with the postmark API results.
newMail()in any handler, and interceptor to start a fluent mailing.
nameproperty that can be used to give a human readable name for all protocols.
configstructure. This structure is used to model all the mail settings and properties that will be used to send mail through any protocol.
send()method will return itself so you can interact with the payload for either success or failures. You will do so using the following methods:
OnError( callback )
OnSuccess ( callback )
getResults(): struct. Empty if no results
hasErrors(): boolean. False if no results
getResultMessages(): array. Empty if no results
mailersstructure where you can register extra named mailer protocols. You can then use them by name in your mail payloads and set the
defaultProtocolas well by it's name.
setMailer()method to register the name of the mailer to use for the payload or use the
argsinto the view and layout as the
bodyof the mailing. If you don't pass a
layoutby convention we will just render the view in isolation.
queue()method. That’s it. The mail services schedule will deliver the mail payload to the right mailer asynchronously and at least every minute schedule.
queue()method is a task ID guid which you can use to track in log statements.