MailManager
class MailManager implements Factory mixin Mailer (View source)
Properties
protected Application | $app | The application instance. |
|
protected array | $mailers | The array of resolved mailers. |
|
protected array | $customCreators | The registered custom driver creators. |
Methods
Create a new transport instance.
Create an instance of the Symfony SMTP Transport driver.
Configure the additional SMTP driver options.
Create an instance of the Symfony Sendmail Transport driver.
Create an instance of the Symfony Amazon SES Transport driver.
Create an instance of the Symfony Amazon SES V2 Transport driver.
Add the SES credentials to the configuration array.
Create an instance of the Resend Transport driver.
Create an instance of the Symfony Mail Transport driver.
Create an instance of the Symfony Mailgun Transport driver.
Create an instance of the Symfony Postmark Transport driver.
Create an instance of the Symfony Failover Transport driver.
Create an instance of the Symfony Roundrobin Transport driver.
Create an instance of the Log Transport driver.
Create an instance of the Array Transport Driver.
Get a configured Symfony HTTP client instance.
Set a global address on the mailer by type.
Get the mail connection configuration.
Get the default mail driver name.
Set the default mail driver name.
Disconnect the given mailer and remove from local cache.
Get the application instance used by the manager.
Forget all of the resolved mailer instances.
Dynamically call the default driver instance.
Details
protected EsmtpTransport
createSmtpTransport(array $config)
Create an instance of the Symfony SMTP Transport driver.
protected EsmtpTransport
configureSmtpTransport(EsmtpTransport $transport, array $config)
Configure the additional SMTP driver options.
protected SendmailTransport
createSendmailTransport(array $config)
Create an instance of the Symfony Sendmail Transport driver.
protected SesTransport
createSesTransport(array $config)
Create an instance of the Symfony Amazon SES Transport driver.
protected SesV2Transport
createSesV2Transport(array $config)
Create an instance of the Symfony Amazon SES V2 Transport driver.
protected array
addSesCredentials(array $config)
Add the SES credentials to the configuration array.
protected ResendTransprot
createResendTransport(array $config)
Create an instance of the Resend Transport driver.
protected SendmailTransport
createMailTransport()
Create an instance of the Symfony Mail Transport driver.
protected TransportInterface
createMailgunTransport(array $config)
Create an instance of the Symfony Mailgun Transport driver.
protected PostmarkApiTransport
createPostmarkTransport(array $config)
Create an instance of the Symfony Postmark Transport driver.
protected FailoverTransport
createFailoverTransport(array $config)
Create an instance of the Symfony Failover Transport driver.
protected RoundRobinTransport
createRoundrobinTransport(array $config)
Create an instance of the Symfony Roundrobin Transport driver.
protected LogTransport
createLogTransport(array $config)
Create an instance of the Log Transport driver.
protected HttpClientInterface|null
getHttpClient(array $config)
Get a configured Symfony HTTP client instance.
protected void
setGlobalAddress(Mailer $mailer, array $config, string $type)
Set a global address on the mailer by type.