

Php artisan vendor:publish -tag=laravel-mail

To use the Mailgun driver, install Symfony's Mailgun Mailer transport via Composer: Whenever possible, we recommend that you use one of these drivers. The API based drivers such as Mailgun, Postmark, and MailerSend are often simpler and faster than sending mail via SMTP servers. This array contains a sample configuration entry for each of the major mail drivers / transports supported by Laravel, while the default configuration value determines which mailer will be used by default when your application needs to send an email message. Within your mail configuration file, you will find a mailers configuration array. For example, your application might use Postmark to send transactional emails while using Amazon SES to send bulk emails. Each mailer configured within this file may have its own unique configuration and even its own unique "transport", allowing your application to use different email services to send certain email messages. Laravel's email services may be configured via your application's config/mail.php configuration file.

Laravel and Symfony Mailer provide drivers for sending email via SMTP, Mailgun, Postmark, Amazon SES, and sendmail, allowing you to quickly get started sending mail through a local or cloud based service of your choice. Laravel provides a clean, simple email API powered by the popular Symfony Mailer component. Sending email doesn't have to be complicated.
