mura

Class mailer

lucee.Component
    extended by mura.cfobject
      extended by mura.mailer

This provides a utility to send emails with site of global config settings

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any configBean, any settingsManager, any contentRenderer)
    Method Summary
    any filterEmails([any emails])
    any getFromEmail([string siteid='default'])
    string getMailServerIP([string siteid=''])
    string getMailServerPassword([string siteid=''])
    string getMailServerPort([string siteid=''])
    string getMailServerSSL([string siteid=''])
    string getMailServerTLS([string siteid=''])
    string getMailServerUsername([string siteid=''])
    string getUseDefaultSMTPServer([string siteid=''])
    any isValidEmailFormat([any email])
    any send([struct args='[runtime expression]'], [string sendto=''], [string from=''], [string subject=''], [string siteid=''], [string replyto=''], string bcc='', [array mailParamArray])
    any sendHTML([string html=''], [string sendto=''], [string from=''], [string subject=''], [string siteid=''], [string replyTo=''], [string mailerID=''], string bcc='', [array mailParamArray])
    any sendText([string text=''], [string sendto=''], [string from=''], [string subject=''], [string siteid=''], [string replyTo=''], [string mailerID=''], string bcc='', [array mailParamArray])
    any sendTextAndHTML([string text=''], [string html=''], [string sendto=''], [string from=''], [string subject=''], [string siteid=''], [string replyTo=''], [string mailerID=''], string bcc='', [array mailParamArray])
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, get, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getFeed, getHTTPAttrs, getHTTPService, getJavaTimezone, getPlugin, getPluginManager, getQueryAttrs, getQueryService, getServiceFactory, getSession, getValue, hasCustomDatasource, initTracePoint, inject, injectMethod, invokeMethod, mixin, parseDateArg, removeValue, set, setValue, valueExists
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any configBean, any settingsManager, any contentRenderer)

    Parameters:
    configBean
    settingsManager
    contentRenderer

    Method Detail

    filterEmails

    public any filterEmails([any emails])

    Parameters:
    emails

    getFromEmail

    public any getFromEmail([string siteid='default'])

    Parameters:
    siteid

    getMailServerIP

    public string getMailServerIP([string siteid=''])

    Parameters:
    siteid

    getMailServerPassword

    public string getMailServerPassword([string siteid=''])

    Parameters:
    siteid

    getMailServerPort

    public string getMailServerPort([string siteid=''])

    Parameters:
    siteid

    getMailServerSSL

    public string getMailServerSSL([string siteid=''])

    Parameters:
    siteid

    getMailServerTLS

    public string getMailServerTLS([string siteid=''])

    Parameters:
    siteid

    getMailServerUsername

    public string getMailServerUsername([string siteid=''])

    Parameters:
    siteid

    getUseDefaultSMTPServer

    public string getUseDefaultSMTPServer([string siteid=''])

    Parameters:
    siteid

    isValidEmailFormat

    public any isValidEmailFormat([any email])

    Parameters:
    email

    send

    public any send([struct args='[runtime expression]'], [string sendto=''], [string from=''], [string subject=''], [string siteid=''], [string replyto=''], string bcc='', [array mailParamArray])

    Parameters:
    args
    sendto
    from
    subject
    siteid
    replyto
    bcc
    mailParamArray - You can pass the attributes for the cfMailParam tag as an array of structured keys.

    sendHTML

    public any sendHTML([string html=''], [string sendto=''], [string from=''], [string subject=''], [string siteid=''], [string replyTo=''], [string mailerID=''], string bcc='', [array mailParamArray])

    Parameters:
    html
    sendto
    from
    subject
    siteid
    replyTo
    mailerID
    bcc
    mailParamArray - You can pass the attributes for the cfMailParam tag as an array of structured keys.

    sendText

    public any sendText([string text=''], [string sendto=''], [string from=''], [string subject=''], [string siteid=''], [string replyTo=''], [string mailerID=''], string bcc='', [array mailParamArray])

    Parameters:
    text
    sendto
    from
    subject
    siteid
    replyTo
    mailerID
    bcc
    mailParamArray - You can pass the attributes for the cfMailParam tag as an array of structured keys.

    sendTextAndHTML

    public any sendTextAndHTML([string text=''], [string html=''], [string sendto=''], [string from=''], [string subject=''], [string siteid=''], [string replyTo=''], [string mailerID=''], string bcc='', [array mailParamArray])

    Parameters:
    text
    html
    sendto
    from
    subject
    siteid
    replyTo
    mailerID
    bcc
    mailParamArray - You can pass the attributes for the cfMailParam tag as an array of structured keys.