MailManager
Implements
Properties
$mailers array
The array of resolved mailers.
$customCreators array
The registered custom driver creators.
Methods
get ( $name ) : Mailer
Attempt to get the mailer from the local cache.
Parameters
- $name string
createSymfonyTransport ( array $config ) : Symfony\...\TransportInterface
Create a new transport instance.
Parameters
- $config array
createSmtpTransport ( array $config ) : Symfony\...\EsmtpTransport
Create an instance of the Symfony SMTP Transport driver.
Parameters
- $config array
configureSmtpTransport ( Symfony\...\EsmtpTransport $transport , array $config ) : Symfony\...\EsmtpTransport
Configure the additional SMTP driver options.
Parameters
- $transport Symfony\...\EsmtpTransport
- $config array
createSendmailTransport ( array $config ) : Symfony\...\SendmailTransport
Create an instance of the Symfony Sendmail Transport driver.
Parameters
- $config array
createSesTransport ( array $config ) : SesTransport
Create an instance of the Symfony Amazon SES Transport driver.
Parameters
- $config array
createSesV2Transport ( array $config ) : Illuminate\...\Se2VwTransport
Create an instance of the Symfony Amazon SES V2 Transport driver.
Parameters
- $config array
addSesCredentials ( array $config ) : array
Add the SES credentials to the configuration array.
Parameters
- $config array
createMailTransport ( ) : Symfony\...\SendmailTransport
Create an instance of the Symfony Mail Transport driver.
createMailgunTransport ( array $config ) : Symfony\...\TransportInterface
Create an instance of the Symfony Mailgun Transport driver.
Parameters
- $config array
createPostmarkTransport ( array $config ) : Symfony\...\PostmarkApiTransport
Create an instance of the Symfony Postmark Transport driver.
Parameters
- $config array
createFailoverTransport ( array $config ) : Symfony\...\FailoverTransport
Create an instance of the Symfony Failover Transport driver.
Parameters
- $config array
createLogTransport ( array $config ) : LogTransport
Create an instance of the Log Transport driver.
Parameters
- $config array
createArrayTransport ( ) : ArrayTransport
Create an instance of the Array Transport Driver.
getHttpClient ( array $config ) : Symfony\...\HttpClientInterface|null
Get a configured Symfony HTTP client instance.
setGlobalAddress ( $mailer , array $config , string $type ) : void
Set a global address on the mailer by type.
Parameters
- $mailer Mailer
- $config array
- $type string
getConfig ( string $name ) : array
Get the mail connection configuration.
Parameters
- $name string
getDefaultDriver ( ) : string
Get the default mail driver name.
setDefaultDriver ( string $name ) : void
Set the default mail driver name.
Parameters
- $name string
purge ( $name ) : void
Disconnect the given mailer and remove from local cache.
Parameters
- $name string|null
extend ( $driver , Closure $callback ) : $this
Register a custom transport creator Closure.
Parameters
- $driver string
- $callback Closure
setApplication ( $app ) : $this
Set the application instance used by the manager.
Parameters
- $app Application
forgetMailers ( ) : $this
Forget all of the resolved mailer instances.
__call ( $method , $parameters ) : mixed
Dynamically call the default driver instance.
Parameters
- $method string
- $parameters array