WEB-INF.cftags.component coldbox.system.core.mail.Mail
I model a cfmail object with extra pizzazz
Constructor Summary | |
---|---|
init()
Initialize the Mail object. |
Method Summary | |
---|---|
any
|
addAttachments(any files, [boolean remove='false'])
Add attachment(s) to this payload using a list or array of file locations. |
any
|
addMailParam([any contentID], [any disposition], [any file], [any type], [any name], [any value], [boolean remove], [any content])
Add mail params to this payload. |
any
|
addMailPart([string charset], [string type], [numeric wraptext], [string body])
Add a new mail part to this mail payload. |
Mail
|
config([string from], [string to], [string body], [string bcc], [string cc], [string charset], [boolean debug], [string failto], [string group], [boolean groupcasesensitive], [string mailerid], [numeric maxrows], [string mimeattach], [string password], [numeric port], [string priority], [string query], [string replyto], [string server], [boolean spoolenable], [numeric startrow], [string subject], [numeric timeout], [string type], [string username], [boolean useSSL], [boolean useTLS], [numeric wraptext])
Configure the Mail object. |
any
|
getBcc()
Gets the bcc property. |
string
|
getBody()
Get body. |
any
|
getBodyTokens()
Gets the bodyTokens property. |
any
|
getCc()
Gets the cc property. |
any
|
getCharset()
Gets the charset property. |
any
|
getDebug()
Gets the debug property. |
any
|
getFailto()
Gets the failto property. |
any
|
getFrom()
Gets the from property. |
any
|
getGroup()
Gets the group property. |
any
|
getGroupcasesensitive()
Gets the groupcasesensitive property. |
Array
|
getMailParams()
Gets the mailParams property. |
Array
|
getMailParts()
Gets the mailParts defined in this Mail object. |
any
|
getMailerid()
Gets the mailerid property. |
any
|
getMaxrows()
Gets the maxrows property. |
struct
|
getMemento()
|
any
|
getMimeattach()
Gets the mimeattach property. |
any
|
getPassword()
Gets the password property. |
any
|
getPort()
Gets the port property. |
any
|
getPriority()
Gets the priority property. |
any
|
getQuery()
Gets the query property. |
any
|
getReplyto()
Gets the replyto property. |
any
|
getServer()
Gets the server property. |
any
|
getSpoolenable()
Gets the spoolenable property. |
any
|
getStartrow()
Gets the startrow property. |
any
|
getSubject()
Gets the subject property. |
any
|
getTimeout()
Gets the timeout property. |
any
|
getTo()
Gets the to property. |
any
|
getType()
Gets the type property. |
any
|
getUseSSL()
Gets the useSSL property. |
any
|
getUseTLS()
Gets the useTLS property. |
any
|
getUsername()
Gets the username property. |
any
|
getWraptext()
Gets the wraptext property. |
boolean
|
propertyExists(string property)
Checks if a mail property exists. |
any
|
setBcc(string newBcc)
Sets a new value for the bcc property. |
any
|
setBody(string Body)
Set Body. |
any
|
setBodyTokens(struct tokenMap)
Sets a new struct of body tokens that can be used for replacement when the mail is sent. |
any
|
setCc(string newCc)
Sets a new value for the cc property. |
any
|
setCharset(string newCharset)
Sets a new value for the charset property. |
any
|
setDebug(boolean newDebug)
Sets a new value for the debug property. |
any
|
setFailto(string newFailto)
Sets a new value for the failto property. |
any
|
setFrom(string newFrom)
Sets a new value for the from property. |
any
|
setGroup(string newGroup)
Sets a new value for the group property. |
any
|
setGroupcasesensitive(boolean newGroupcasesensitive)
Sets a new value for the groupcasesensitive property. |
any
|
setHTML([any body])
Sets up a mail part that is HTML using utf8 for you by calling addMailpart(). |
any
|
setMailerid(string newMailerid)
Sets a new value for the mailerid property. |
any
|
setMaxrows(numeric newMaxrows)
Sets a new value for the maxrows property. |
void
|
setMemento([struct memento])
|
any
|
setMimeattach(string newMimeattach)
Sets a new value for the mimeattach property. |
any
|
setPassword(string newPassword)
Sets a new value for the password property. |
any
|
setPort(numeric newPort)
Sets a new value for the port property. |
any
|
setPriority(string newPriority)
Sets a new value for the priority property. |
any
|
setQuery(string newQuery)
Sets a new value for the query property. |
any
|
setReadReceipt([any email])
Set the email address that will receive read receipts. |
any
|
setReplyto(string newReplyto)
Sets a new value for the replyto property. |
any
|
setSendReceipt([any email])
Sets the email that get's notified once the email is delivered by setting the appropriate mail headers. |
any
|
setServer(string newServer)
Sets a new value for the server property. |
any
|
setSpoolenable(boolean newSpoolenable)
Sets a new value for the spoolenable property. |
any
|
setStartrow(numeric newStartrow)
Sets a new value for the startrow property. |
any
|
setSubject(string newSubject)
Sets a new value for the subject property. |
any
|
setText([any body])
Sets up a mail part that is TEXT using utf8 for you by calling addMailpart(). |
any
|
setTimeout(numeric newTimeout)
Sets a new value for the timeout property. |
any
|
setTo(string newTo)
Sets a new value for the to property. |
any
|
setType(string newType)
Sets a new value for the type property. |
any
|
setUseSSL(boolean newUseSSL)
Sets a new value for the useSSL property. |
any
|
setUseTLS(boolean newUseTLS)
Sets a new value for the useTLS property. |
any
|
setUsername(string newUsername)
Sets a new value for the username property. |
any
|
setWraptext(numeric newWraptext)
Sets a new value for the wraptext property. |
boolean
|
validate()
validates the basic fields of To, From and Body. |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Initialize the Mail object
Method Detail |
---|
Add attachment(s) to this payload using a list or array of file locations
files
- A list or array of files to attach to this payloadremove
- If true, ColdFusion removes attachment files (if any) after the mail is successfully delivered.Add mail params to this payload
contentID
- Initial value for the contentID property.disposition
- Initial value for the dispositio nproperty.file
- Initial value for the file property.type
- Initial value for the type property.name
- Initial value for the name property.value
- Initial value for the value property.remove
- If true, ColdFusion removes attachment files (if any) after the mail is successfully delivered.content
- Lets you send the contents of a ColdFusion variable as an attachment.Add a new mail part to this mail payload
charset
- Initial value for the charset property.type
- Initial value for the type property.wraptext
- Initial value for the wraptext property.body
- Initial value for the body property.Configure the Mail object
from
- Initial value for the from property.to
- Initial value for the to property.body
- Initial value for the email body.bcc
- Initial value for the bcc property.cc
- Initial value for the cc property.charset
- Initial value for the charset property.debug
- Initial value for the debug property.failto
- Initial value for the failto property.group
- Initial value for the group property.groupcasesensitive
- Initial value for the groupcasesensitive property.mailerid
- Initial value for the mailerid property.maxrows
- Initial value for the maxrows property.mimeattach
- Initial value for the mimeattach property.password
- Initial value for the password property.port
- Initial value for the port property.priority
- Initial value for the priority property.query
- Initial value for the query property.replyto
- Initial value for the replyto property.server
- Initial value for the server property.spoolenable
- Initial value for the spoolenable property.startrow
- Initial value for the startrow property.subject
- Initial value for the subject property.timeout
- Initial value for the timeout property.type
- Initial value for the type property.username
- Initial value for the username property.useSSL
- Initial value for the useSSL property.useTLS
- Initial value for the useTLS property.wraptext
- Initial value for the wraptext property.Gets the bcc property
Get body
Gets the bodyTokens property
Gets the cc property
Gets the charset property
Gets the debug property
Gets the failto property
Gets the from property
Gets the group property
Gets the groupcasesensitive property
Gets the mailParams property
Gets the mailParts defined in this Mail object
Gets the mailerid property
Gets the maxrows property
Gets the mimeattach property
Gets the password property
Gets the port property
Gets the priority property
Gets the query property
Gets the replyto property
Gets the server property
Gets the spoolenable property
Gets the startrow property
Gets the subject property
Gets the timeout property
Gets the to property
Gets the type property
Gets the useSSL property
Gets the useTLS property
Gets the username property
Gets the wraptext property
Checks if a mail property exists
property
- The property to checkSets a new value for the bcc property
newBcc
Set Body
Body
Sets a new struct of body tokens that can be used for replacement when the mail is sent. The tokens are replaced in the body content ast @token@ delimmitted.
tokenMap
Sets a new value for the cc property
newCc
Sets a new value for the charset property
newCharset
Sets a new value for the debug property
newDebug
Sets a new value for the failto property
newFailto
Sets a new value for the from property
newFrom
Sets a new value for the group property
newGroup
Sets a new value for the groupcasesensitive property
newGroupcasesensitive
Sets up a mail part that is HTML using utf8 for you by calling addMailpart()
body
- The HTML content to set in the mail partSets a new value for the mailerid property
newMailerid
Sets a new value for the maxrows property
newMaxrows
memento
Sets a new value for the mimeattach property
newMimeattach
Sets a new value for the password property
newPassword
Sets a new value for the port property
newPort
Sets a new value for the priority property
newPriority
Sets a new value for the query property
newQuery
Set the email address that will receive read receipts. I just place the appropriate mail headers
email
Sets a new value for the replyto property
newReplyto
Sets the email that get's notified once the email is delivered by setting the appropriate mail headers
email
Sets a new value for the server property
newServer
Sets a new value for the spoolenable property
newSpoolenable
Sets a new value for the startrow property
newStartrow
Sets a new value for the subject property
newSubject
Sets up a mail part that is TEXT using utf8 for you by calling addMailpart()
body
- The HTML content to set in the mail partSets a new value for the timeout property
newTimeout
Sets a new value for the to property
newTo
Sets a new value for the type property
newType
Sets a new value for the useSSL property
newUseSSL
Sets a new value for the useTLS property
newUseTLS
Sets a new value for the username property
newUsername
Sets a new value for the wraptext property
newWraptext
validates the basic fields of To, From and Body