Email service.
More...
Email service.
Definition at line 20 of file EmailService.php.
◆ __construct()
◆ addHtmlPart()
| Elgg\EmailService::addHtmlPart |
( |
SymfonyEmail |
$message, |
|
|
\Elgg\Email |
$email |
|
) |
| |
|
protected |
Add the HTML part to the e-mail message.
- Parameters
-
| SymfonyEmail | $message | Current message |
| \Elgg\Email | $email | the e-mail to get information from |
- Returns
- void
Definition at line 164 of file EmailService.php.
◆ findImages()
| 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 310 of file EmailService.php.
◆ makeHtmlBody()
| 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 276 of file EmailService.php.
◆ prepareSubject()
| Elgg\EmailService::prepareSubject |
( |
string |
$subject | ) |
|
|
protected |
Prepare the subject string.
- Parameters
-
| string | $subject | initial subject string |
- Returns
- string
Definition at line 124 of file EmailService.php.
◆ send()
| Elgg\EmailService::send |
( |
Email |
$email | ) |
|
Sends an email.
- Parameters
-
- Returns
- bool
- Exceptions
-
Definition at line 52 of file EmailService.php.
◆ setMessageBody()
| Elgg\EmailService::setMessageBody |
( |
SymfonyEmail |
$message, |
|
|
Email |
$email |
|
) |
| |
|
protected |
Build the body part of the e-mail message.
- Parameters
-
| SymfonyEmail | $message | Current message |
| Email | $email | Email |
- Returns
- void
Definition at line 140 of file EmailService.php.
◆ transport()
| Elgg\EmailService::transport |
( |
Email |
$email | ) |
|
Transports an email.
- Parameters
-
- Returns
- bool
Definition at line 74 of file EmailService.php.
The documentation for this class was generated from the following file: