ox.system.core.mail.protocols.concurrent.Callable interface">
|
ColdBox Platform - LogBox Version 1.6.1 | ||||
| FRAMES | |||||
logbox.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 logbox.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 protocol| Method 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 - LogBox Version 1.6.1 | ||||
| FRAMES | |||||