Users.Email Class
Class representing 'Email' rows in the 'Users' database
Constructor
Users.Email
    
        - 
                    
                        fields
Parameters:
- 
                    
                        fieldsObjectThe fields values to initialize table row as an associative array of {column: value}pairs
Item Index
Methods
- sendMessage static
- sendMessage
- setUp
Methods
sendMessage
    
        - 
                    
                        to
- 
                    
                        subject
- 
                    
                        view
- 
                    
                        [fields={}]
- 
                    
                        [options={}]
- 
                    
                        callback
Send e-mail message
Parameters:
- 
                    
                        toStringComma-separated list of emails 
- 
                    
                        subjectStringThe subject. May contain variable references to members of the $fields array. 
- 
                    
                        viewStringThe name of a view for the body. Fields are passed to it. 
- 
                    
                        [fields={}]Object optionalThe fields referenced in the subject and/or view 
- 
                    
                        [options={}]Object optional- 
                                
                                    [html=false]String optionalWhether to send as HTML email. 
- 
                                
                                    [name]String optionalA human-readable name in addition to the address to send to. 
- 
                                
                                    [from]Array optionalAn array of [emailAddress, humanReadableName]. 
- 
                                
                                    [isSource]Boolean optionalIf true, the view parameter contains the exact source, not the path of the template 
 
- 
                                
                                    
- 
                    
                        callbackFunctionReceives error, method used and response objects after complete 
sendMessage
    
        - 
                    
                        subject
- 
                    
                        view
- 
                    
                        fields={}
- 
                    
                        $options={}
- 
                    
                        callback
Send e-mail message
Parameters:
- 
                    
                        subjectStringThe subject. May contain variable references to members of the $fields array. 
- 
                    
                        viewStringThe name of a view for the body. Fields are passed to it. 
- 
                    
                        fields={}ArrayOptional. The fields referenced in the subject and/or view 
- 
                    
                        $options={}ArrayOptional. Array of options. Can include: 
 "html" => Defaults to false. Whether to send as HTML email.
 "from" => An array of emailAddress, human_readable_name
- 
                    
                        callbackFunctionReceives error and response objects after complete 
setUp
    
        ()
    
    
    
    
    
    
    
    
    
    The setUp() method is called the first time an object of this class is constructed.