-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
558f343
commit fcb2065
Showing
2 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,35 @@ i.e. they are either send explicitly be the `queue` method or the mailable class | |
|
||
It is of course necessary to install a [queue driver](https://laravel.com/docs/5.8/queues#driver-prerequisites). | ||
|
||
|
||
### Default mails | ||
|
||
It is recommended to **avoid** putting your actual mail credentials into your local `.env` to prevent sending testing mails to actual users. | ||
Instead of adding fake entries in your `.env` file for any mail provided in `config/multimail.php`, simply use a fallback mail that should | ||
be used whenever the username/password cannot be found in the `.env` file. To do so, add a `default` entry inside the `email` array from `config/multimail.php`: | ||
|
||
'emails' => [ | ||
'[email protected]' => | ||
[ | ||
'pass' => env('first_mail_password'), | ||
'username' => env('first_mail_username'), | ||
'from' => "Max Musterman", | ||
], | ||
'[email protected]' => | ||
[ | ||
'pass' => env('second_mail_password'), | ||
'username' => env('second_mail_username'), | ||
'from' => "Alice Armania", | ||
], | ||
'default' => | ||
[ | ||
'pass' => env('MAIL_PASSWORD'), | ||
'username' => env('MAIL_USERNAME'), | ||
] | ||
], | ||
|
||
|
||
|
||
### Bulk messages | ||
|
||
For bulk messages, you may first require a mailer object. You can define a pause in seconds ($timeout) after a number of mails ($frequency) has been send. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters