Users_Email Class
Class representing 'Email' rows in the 'Users' database You can create an object of this class either to access its non-static methods, or to actually represent a email row in the Users database.
Item Index
Methods
Methods
__set_state
-
$array
Implements the __set_state method, so it can work with with var_export and be re-imported successfully.
Parameters:
-
$arrayArray
Returns:
Class instance
sendMessage
-
$subject -
$view -
$fields=array() -
[$options=array()]
Send e-mail message
Parameters:
-
$subjectString | ArrayThe subject. May contain variable references to members of the $fields array. You can also pass an array($source, array($key1, ...)) to use Q_Text to obtain the subject.
-
$viewStringThe name of a view for the body. Fields are passed to it.
-
$fields=array()ArrayThe fields referenced in the subject and/or view
-
[$options=array()]Array optionalArray of options. Can include:
-
[html=false]Array optionalWhether to send as HTML email.
-
[name]Array optionalA human-readable name in addition to the address to send to.
-
[from]Array optionalAn array of (emailAddress, humanReadableName)
-
[delay]Array optionalA delay, in milliseconds, to wait until sending email. Only works if Node server is listening.
-
[language]String optionalPreferred language
-
Returns:
True if success or throw exception
setUp
()
The setUp() method is called the first time an object of this class is constructed.
Events
Users/email/sendMessage
Before
Event Payload:
-
subjectString -
viewString -
fieldsArray -
optionsArray
Users/email/sendMessage
After
Event Payload:
-
subjectString -
viewString -
fieldsArray -
optionsArray -
mailString
Users/email/sendMessage/email
Before
Event Payload:
-
subjectString -
viewString -
fieldsArray -
optionsArray -
emailZend_MailYou can use this object's methods to add bcc and more.
Users/resend
Before
Event Payload:
-
userString -
emailString
Users/resend
After
Event Payload:
-
userString -
emailString