WEB-INF.cftags.component coldbox.system.core.mail.MailService
The ColdBox Mail Service used to send emails in an oo and ColdBoxy fashion
Constructor Summary | |
---|---|
init([any<MailSettingsBean> mailSettings], [any tokenMarker='@'])
Constructor. |
Method Summary | |
---|---|
any<MailSettingsBean>
|
getMailSettingsBean()
Get the mail settings configuration object. |
string
|
getTokenMarker()
Get the token marker to use for body token replacements. |
any<Mail>
|
newMail()
Get a new Mail payload object, just use config() on it to prepare it or pass in all the arguments via this method. |
private void
|
parseTokens(any<Mail> mail)
Parse the tokens and do body replacements. |
struct
|
send(any<Mail> mail)
Send an email payload. |
void
|
setTokenMarker(any tokenMarker)
Set the token marker to use for body token replacements. |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Constructor
mailSettings
- A configured mail settings bean with default mail configurations, else ignored and uses payloadtokenMarker
- The default token Marker SymbolMethod Detail |
---|
Get the mail settings configuration object
Get the token marker to use for body token replacements
Get a new Mail payload object, just use config() on it to prepare it or pass in all the arguments via this method
Parse the tokens and do body replacements.
mail
- The mail payloadSend an email payload. Returns a struct: [error:boolean,errorArray:array]
mail
- The mail payload to send.Set the token marker to use for body token replacements
tokenMarker