Email service.
More...
Email service.
Definition at line 27 of file EmailService.php.
Constructor.
- Parameters
-
Config | $config | Config |
EventsService | $events | Events service |
TransportInterface | $mailer | Mailer |
HtmlFormatter | $html_formatter | Html formatter |
ViewsService | $views | Views service |
ImageFetcherService | $image_fetcher | Image fetcher |
CssCompiler | $css_compiler | Css compiler |
Definition at line 77 of file EmailService.php.
Elgg\EmailService::findImages |
( |
string |
$text | ) |
|
|
protected |
Find img src's in text.
The results contain the original quotes surrounding the image src url.
- Parameters
-
string | $text | the text to search though |
- Returns
- string[]
Definition at line 427 of file EmailService.php.
Elgg\EmailService::makeHtmlBody |
( |
array |
$options = [] | ) |
|
|
protected |
Create the HTML content for use in a HTML email part.
- Parameters
-
array | $options | additional options to pass through to views |
- Returns
- string
Definition at line 395 of file EmailService.php.
Elgg\EmailService::makeHtmlPart |
( |
\Elgg\Email |
$email | ) |
|
|
protected |
Make the html part of the e-mail message.
- Parameters
-
\Elgg\Email | $email | the e-mail to get information from |
- Returns
Definition at line 277 of file EmailService.php.
Elgg\EmailService::prepareSubject |
( |
string |
$subject | ) |
|
|
protected |
Prepare the subject string.
- Parameters
-
string | $subject | initial subject string |
- Returns
- string
Definition at line 196 of file EmailService.php.
Elgg\EmailService::send |
( |
Email |
$email | ) |
|
Sends an email.
- Parameters
-
- Returns
- bool
- Exceptions
-
Definition at line 103 of file EmailService.php.
Elgg\EmailService::setMessageBody |
( |
MailMessage |
$message, |
|
|
Email |
$email |
|
) |
| |
|
protected |
Build the body part of the e-mail message.
- Parameters
-
MailMessage | $message | Current message |
Email | $email | Email |
- Returns
Definition at line 212 of file EmailService.php.
Elgg\EmailService::transport |
( |
Email |
$email | ) |
|
Transports an email.
- Parameters
-
- Returns
- bool
- Exceptions
-
Definition at line 126 of file EmailService.php.
Elgg\EmailService::$config |
|
protected |
Elgg\EmailService::$css_compiler |
|
protected |
Elgg\EmailService::$events |
|
protected |
Elgg\EmailService::$html_formatter |
|
protected |
Elgg\EmailService::$image_fetcher |
|
protected |
Elgg\EmailService::$mailer |
|
protected |
Elgg\EmailService::$views |
|
protected |
The documentation for this class was generated from the following file: