TransportManager
class TransportManager extends Manager (View source)
Properties
protected Application | $app | The application instance. | from Manager |
protected array | $customCreators | The registered custom driver creators. | from Manager |
protected array | $drivers | The array of created "drivers". | from Manager |
Methods
void | __construct(Application $app) Create a new manager instance. | from Manager |
string | getDefaultDriver() Get the default mail driver name. | |
mixed | driver(string $driver = null) Get a driver instance. | from Manager |
mixed | createDriver(string $driver) Create a new driver instance. | from Manager |
mixed | callCustomCreator(string $driver) Call a custom driver creator. | from Manager |
$this | extend(string $driver, Closure $callback) Register a custom driver creator Closure. | from Manager |
array | getDrivers() Get all of the created "drivers". | from Manager |
mixed | __call(string $method, array $parameters) Dynamically call the default driver instance. | from Manager |
Swift_SmtpTransport | createSmtpDriver() Create an instance of the SMTP Swift Transport driver. | |
Swift_SendmailTransport | createSendmailDriver() Create an instance of the Sendmail Swift Transport driver. | |
SesTransport | createSesDriver() Create an instance of the Amazon SES Swift Transport driver. | |
array | addSesCredentials(array $config) Add the SES credentials to the configuration array. | |
Swift_SendmailTransport | createMailDriver() Create an instance of the Mail Swift Transport driver. | |
MailgunTransport | createMailgunDriver() Create an instance of the Mailgun Swift Transport driver. | |
MandrillTransport | createMandrillDriver() Create an instance of the Mandrill Swift Transport driver. | |
SparkPostTransport | createSparkPostDriver() Create an instance of the SparkPost Swift Transport driver. | |
LogTransport | createLogDriver() Create an instance of the Log Swift Transport driver. | |
ArrayTransport | createArrayDriver() Create an instance of the Array Swift Transport Driver. | |
Client | guzzle(array $config) Get a fresh Guzzle HTTP client instance. | |
void | setDefaultDriver(string $name) Set the default mail driver name. |
Details
void __construct(Application $app)
Create a new manager instance.
string getDefaultDriver()
Get the default mail driver name.
mixed driver(string $driver = null)
Get a driver instance.
protected mixed createDriver(string $driver)
Create a new driver instance.
protected mixed callCustomCreator(string $driver)
Call a custom driver creator.
$this extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
array getDrivers()
Get all of the created "drivers".
mixed __call(string $method, array $parameters)
Dynamically call the default driver instance.
protected Swift_SmtpTransport createSmtpDriver()
Create an instance of the SMTP Swift Transport driver.
protected Swift_SendmailTransport createSendmailDriver()
Create an instance of the Sendmail Swift Transport driver.
protected SesTransport createSesDriver()
Create an instance of the Amazon SES Swift Transport driver.
protected array addSesCredentials(array $config)
Add the SES credentials to the configuration array.
protected Swift_SendmailTransport createMailDriver()
Create an instance of the Mail Swift Transport driver.
protected MailgunTransport createMailgunDriver()
Create an instance of the Mailgun Swift Transport driver.
protected MandrillTransport createMandrillDriver()
Create an instance of the Mandrill Swift Transport driver.
protected SparkPostTransport createSparkPostDriver()
Create an instance of the SparkPost Swift Transport driver.
protected LogTransport createLogDriver()
Create an instance of the Log Swift Transport driver.
protected ArrayTransport createArrayDriver()
Create an instance of the Array Swift Transport Driver.
protected Client guzzle(array $config)
Get a fresh Guzzle HTTP client instance.
void setDefaultDriver(string $name)
Set the default mail driver name.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Mail/TransportManager.html