Skip to content

Commit 4892dd2

Browse files
akopertaylorotwell
andauthored
Update mail.md (#10151)
* Update mail.md To send email with Mailgun (and any external mail service, probably) and Laravel, there are three changes to config files that have to be made. Two of them had code examples in the documentation. The third one did not. Currently, it is just written with words as "change the default value..." but the fact that the item in the array is named "default" and value in the key/value pair is "default" leads to ambiguity. After reading Laraval mail's documentation, doing a lot of set up and configuring, and programming a controller and mailable, I experienced hours of stress and frustration because the emails weren't being sent. All of the Mailgun env and config vars seemed to be good. This was the problem. Please accept this mail documentation change. The one-line code example is important in getting mail to work * Update mail.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent a03b68d commit 4892dd2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mail.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ To use the Mailgun driver, install Symfony's Mailgun Mailer transport via Compos
5959
composer require symfony/mailgun-mailer symfony/http-client
6060
```
6161

62-
Next, set the `default` option in your application's `config/mail.php` configuration file to `mailgun` and add the following configuration array to your array of `mailers`:
62+
Next, you will need to make two changes in your application's `config/mail.php` configuration file. First, set your default mailer to `mailgun`:
63+
64+
'default' => env('MAIL_MAILER', 'mailgun'),
65+
66+
Second, add the following configuration array to your array of `mailers`:
6367

6468
'mailgun' => [
6569
'transport' => 'mailgun',

0 commit comments

Comments
 (0)