|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.core.mail.AbstractProtocol
coldbox.system.core.mail.protocols.PostmarkProtocol
public class PostmarkProtocol
A mail protocol that sends via http://postmarkapp.com/
Constructor Summary | |
---|---|
init([any properties='[runtime expression]'])
Constructor |
Method Summary | |
---|---|
private struct |
encodeAttachment(struct MailParam)
I encode an attachment so that PostMark likes it |
private struct |
encodeHeader(struct MailParam)
I encode named headers so that PostMark likes it |
private string |
getFileMimeType(string filePath)
I calculate the MIME type for a given file |
private struct |
reformatPostMarkResponse(struct PostMarkReturnStruct)
I format the PostMarkApp return result into one which conforms to the coldbox mailer service |
struct |
send(Mail mail)
Send an email payload |
Methods inherited from class coldbox.system.core.mail.AbstractProtocol |
---|
getProperties, getProperty, propertyExists, setProperties, setProperty
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init([any properties='[runtime expression]'])
properties
- A map of configuration properties for the protocolMethod Detail |
---|
private struct encodeAttachment(struct MailParam)
MailParam
- I'm the file path for the attachment.private struct encodeHeader(struct MailParam)
MailParam
- I'm the file path for the attachment.private string getFileMimeType(string filePath)
filePath
- I'm the path to the file to be tested.private struct reformatPostMarkResponse(struct PostMarkReturnStruct)
PostMarkReturnStruct
- I'm the returned structure from postmarkpublic struct send(Mail mail)
send
in class
AbstractProtocol
mail
- The mail payload to send.
|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |