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 42 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 384 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 352 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 234 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 153 of file EmailService.php.
Elgg\EmailService::send |
( |
Email |
$email | ) |
|
Sends an email.
- Parameters
-
- Returns
- bool
- Exceptions
-
Definition at line 61 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 169 of file EmailService.php.
Elgg\EmailService::transport |
( |
Email |
$email | ) |
|
Transports an email.
- Parameters
-
- Returns
- bool
- Exceptions
-
Definition at line 84 of file EmailService.php.
The documentation for this class was generated from the following file: