namespace \webfiori\framework\mail
class EmailMessage
Class Attributes Summary
Class Methods Summary
Class Attributes Details
Class Methods Details
Parameters:
- string $sendAccountName The name of SMTP connection that will be used to send the message. It must exist in the class 'AppConfig'. Default value is 'no-reply'.
Parameters:
Parameters:
Parameters:
- Callable $callback A function that will get executed before sending the message. Note that the first parameter of the callback will be always the message (e.g. function (EmailMessage $message) {})
- array $extraParams An optional array of extra parameters that will be passed to the callback.
Parameters:
Parameters:
Parameters:
- string $label A directory to the language variable (such as 'pages/login/login-label').
Returns a string that contains the names and the addresses of people who will receive a blind carbon copy of the message. The format of the string will be as follows:
NAME_1 <ADDRESS_1>, NAME_2 <ADDRESS_2> ...
Returns a string that contains the names and the addresses of people who will receive a carbon copy of the message. The format of the string will be as follows:
NAME_1 <ADDRESS_1>, NAME_2 <ADDRESS_2> ...
Parameters:
- string $id The ID of the child.
- command
- response-code
- response-message
Returns a string that contains the names and the addresses of people who will receive an original copy of the message. The format of the string will be as follows:
NAME_1 <ADDRESS_1>, NAME_2 <ADDRESS_2> ...
Parameters:
Parameters:
- string $lang a two digit language code such as AR or EN. Default value is 'EN'.
Parameters:
- int $priority The priority of the message. -1 for non-urgent, 0 for normal and 1 for urgent. If the passed value is greater than 1, then 1 will be used. If the passed value is less than -1, then -1 is used. Other than that, 0 will be used.
Parameters:
- string $subject Email subject.