Skip to content

Commit 0880f2a

Browse files
authored
Fixes #14
Update readme
1 parent feefef8 commit 0880f2a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,24 @@ expert_coder_swiftmailer_send_grid:
6060
api_key: %sendgrid_api_key%
6161
categories: [my_category] # optional, will be added to all mails sent (can be seen on sendgrid dashboard)
6262
```
63+
Symfony 3
64+
---------
65+
66+
Since Symfony 3.2, you must name the custom transport service swiftmailer.mailer.transport.< name > so you can use one of the solutions below:
67+
68+
*services.yml*
69+
```yml
70+
services:
71+
swiftmailer.mailer.transport.expertcoder_swift_mailer.send_grid.transport:
72+
alias: expertcoder_swift_mailer.send_grid.transport
73+
```
74+
**OR**
75+
76+
*config.yml*
77+
```yml
78+
swiftmailer:
79+
transport: 'swiftmailer.mailer.transport.expertcoder_swift_mailer.send_grid'
80+
```
6381

6482
## Important !
6583

0 commit comments

Comments
 (0)