* @properties The protocol properties to instantiate
function init( struct properties = {} ){
variables.properties = arguments.properties;
variables.name = "MyProtocol";
* Implemented by concrete protocols to send a message.
* The return is a struct with a minimum of the following two keys
* - `error` - A boolean flag if the message was sent or not
* - `messages` - An array of messages the protocol stored if any when sending the payload
* @payload The paylod object to send the message with
* @payload.doc_generic cbmailservices.models.Mail
* @return struct of { "error" : boolean, "messages" : [] }
struct function send( required cbmailservices.models.Mail payload ){