8000 document mailer send · laravel/docs@ebefbe9 · GitHub
[go: up one dir, main page]

Skip to content

Commit ebefbe9

Browse files
committed
document mailer send
1 parent 316714a commit ebefbe9

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

mail.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Within your `mail` configuration file, you will find a `mailers` configuration a
4747
<a name="driver-prerequisites"></a>
4848
### Driver / Transport Prerequisites
4949

50-
The API based drivers such as Mailgun and Postmark are often simpler and faster than sending mail via SMTP servers. Whenever possible, we recommend that you use one of these drivers.
50+
The API based drivers such as Mailgun, Postmark, and MailerSend are often simpler and faster than sending mail via SMTP servers. Whenever possible, we 8000 recommend that you use one of these drivers.
5151

5252
<a name="mailgun-driver"></a>
5353
#### Mailgun Driver
@@ -137,6 +137,27 @@ If you would like to define [additional options](https://docs.aws.amazon.com/aws
137137
],
138138
],
139139

140+
<a name="mailersend-driver"></a>
141+
#### MailerSend Driver
142+
143+
[MailerSend](https://www.mailersend.com/), a transactional email and SMS service, maintains their own API based mail driver for Laravel. The package containing the driver may be installed via the Composer package manager:
144+
145+
```shell
146+
composer require mailersend/laravel-driver
147+
```
148+
149+
Once the package is installed, add the `MAILERSEND_API_KEY` environment variable to your application's `.env` file. In addition, the `MAIL_MAILER` environment variable should be defined as `mailersend`:
150+
151+
```shell
152+
MAIL_MAILER=mailersend
153+
MAIL_FROM_ADDRESS=app@yourdomain.com
154+
MAIL_FROM_NAME="App Name"
155+
156+
MAILERSEND_API_KEY=your-api-key
157+
```
158+
159+
To learn more about MailerSend, including how to use hosted templates, consult the [MailerSend driver documentation](https://github.com/mailersend/mailersend-laravel-driver#usage).
160+
140161
<a name="failover-configuration"></a>
141162
### Failover Configuration
142163

0 commit comments

Comments
 (0)
0