Wrapper around PHPMailer.
More...
|
| __construct ( $settings=[], $logger=null) |
|
| mail ( $to, $subject, $message, $settings=[]) |
|
|
| createMailer ( $settings=null) |
| Create and configure a PHPMailer instance.
|
|
Wrapper around PHPMailer.
- Author
- Bryan Davis bd808.nosp@m.@wik.nosp@m.imedi.nosp@m.a.or.nosp@m.g
- Copyright
- © 2015 Bryan Davis, Wikimedia Foundation and contributors.
◆ __construct()
Wikimedia\Slimapp\Mailer::__construct |
( |
| $settings = [], |
|
|
| $logger = null ) |
- Parameters
-
array | $settings | Configuration settings for PHPMailer |
LoggerInterface | $logger | Log channel |
◆ createMailer()
Wikimedia\Slimapp\Mailer::createMailer |
( |
| $settings = null | ) |
|
|
protected |
Create and configure a PHPMailer instance.
- Parameters
-
array | $settings | Configuration settings |
- Returns
- PHPMailer New mailer configured with default, instance and local settings
◆ mail()
Wikimedia\Slimapp\Mailer::mail |
( |
| $to, |
|
|
| $subject, |
|
|
| $message, |
|
|
| $settings = [] ) |
- Parameters
-
string | $to | Recipient(s) |
string | $subject | Subject |
string | $message | Message |
array | $settings | Additional settings |
- Returns
- bool Send status
◆ $settings
Wikimedia\Slimapp\Mailer::$settings |
|
protected |
Initial value:= [
'AllowEmpty' => false,
'CharSet' => 'utf-8',
'ContentType' => 'text/plain',
'From' => 'grants@wikimedia.org',
'FromName' => 'Wikimedia Grants',
'Mailer' => 'smtp',
'WordWrap' => 72,
'XMailer' => 'Wikimedia Grants review system',
]
The documentation for this class was generated from the following file: