The to method accepts an email address, a user instance, or a collection of users. To send a message, use the to method on the Mail facade. To customize the theme for an individual mailable, you may set the $theme property of the mailable class to the name of the theme that should be used when sending that mailable. After naming and saving your CSS file, update the theme option of your application's config/mail.php configuration file to match the name of your new theme. If you would like to build an entirely new theme for Laravel's Markdown components, you may place a CSS file within the html/themes directory. You may customize the CSS in this file and your styles will automatically be converted to inline CSS styles within the HTML representations of your Markdown mail messages. You are free to customize these components however you like.Īfter exporting the components, the resources/views/vendor/mail/html/themes directory will contain a default.css file. The mail directory will contain an html and a text directory, each containing their respective representations of every available component. This command will publish the Markdown mail components to the resources/views/vendor/mail directory. 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 and Postmark 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |