Configure PHPMailer with DSN string.
More...
|
static | mailer ($dsn, $exceptions=null) |
| Create new PHPMailer instance configured by DSN.
|
|
◆ configure()
PHPMailer\PHPMailer\DSNConfigurator::configure |
( |
PHPMailer | $mailer, |
|
|
| $dsn ) |
Configure PHPMailer instance with DSN string.
- Parameters
-
PHPMailer | $mailer | PHPMailer instance |
string | $dsn | DSN |
- Return values
-
◆ mailer()
static PHPMailer\PHPMailer\DSNConfigurator::mailer |
( |
| $dsn, |
|
|
| $exceptions = null ) |
|
static |
Create new PHPMailer instance configured by DSN.
- Parameters
-
string | $dsn | DSN |
bool | $exceptions | Should we throw external exceptions? |
- Return values
-
◆ parseUrl()
PHPMailer\PHPMailer\DSNConfigurator::parseUrl |
( |
| $url | ) |
|
|
protected |
Parse a URL.
Wrapper for the built-in parse_url function to work around a bug in PHP 5.5.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- lib/phpmailer/src/DSNConfigurator.php