Default implementation of email provider.
\Hubleto\Erp\EmailProvider
| Parent class | \Hubleto\Erp\Core |
| Implements | \Hubleto\Erp\Interfaces\EmailProviderInterface |
Properties
Methods
ƒ __construct
public __construct(): mixed
ƒ getFormattedBody
public getFormattedBody(string $title, string $rawBody, string $template = ''): string
Parameters
| Parameter | Type | Description |
|---|---|---|
$title |
string | |
$rawBody |
string | |
$template |
string |
ƒ send
[Description for send]
public send(string $to, string $subject, string $rawBody, string $template = '', string $fromName = 'Hubleto'): bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$to |
string | |
$subject |
string | |
$rawBody |
string | |
$template |
string | |
$fromName |
string |
ƒ sendEmail
[Description for sendEmail]
public sendEmail(string $to, string $subject, string $body, string $fromName = 'Hubleto'): bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$to |
string | |
$subject |
string | |
$body |
string | |
$fromName |
string |
ƒ sendResetPasswordEmail
[Description for sendResetPasswordEmail]
public sendResetPasswordEmail(string $login, string $name, string $language, string $token): void
Parameters
| Parameter | Type | Description |
|---|---|---|
$login |
string | |
$name |
string | |
$language |
string | |
$token |
string |
ƒ sendWelcomeEmail
[Description for sendWelcomeEmail]
public sendWelcomeEmail(string $login, string $name, string $language, string $token): void
Parameters
| Parameter | Type | Description |
|---|---|---|
$login |
string | |
$name |
string | |
$language |
string | |
$token |
string |
Inherited methods
ƒ emailProvider
Shortcut for the email provider service.
public emailProvider(): \Hubleto\Erp\EmailProvider
