|
9 | 9 |
|
10 | 10 | > Feel free to use any custom transport you desire, provided it implements the mentioned `TransportInterface`. |
11 | 11 |
|
12 | | -`Sendmail` is a wrapper over PHP's `mail()` function, and as such has a different behaviour on Windows than on *nix systems. Using sendmail on Windows **will not work in combination with** `addBcc()`. |
| 12 | +`Sendmail` is a wrapper over PHP's `mail()` function, and as such has a different behavior on Windows than on *nix systems. Using sendmail on Windows **will not work in combination with** `addBcc()`. |
13 | 13 |
|
14 | 14 | - Note: emails sent using the sendmail transport will be more often delivered to SPAM. |
15 | 15 |
|
16 | | -`Smtp` connects to the configured SMTP host in order to handle sending emails. Saving a copy of an outgoing mail into a folder is possible for this transport only, and is done by uncommenting `save_sent_message_folder` in the config file `mail.local.php` under `dot_mail.default`. |
| 16 | +`Smtp` connects to the configured SMTP host to handle sending emails. |
| 17 | +Saving a copy of outgoing mail into a folder is possible for this transport only, and is done by uncommenting `save_sent_message_folder` in the config file `mail.local.php` under `dot_mail.default`. |
17 | 18 |
|
18 | | -- Common folder names are `INBOX`, `INBOX.Archive`, `INBOX.Drafts`, `INBOX.Sent`, `INBOX.Spam`, `INBOX.Trash`. If you have `MailService` available in your class, you can call `$this->mailService->getFolderGlobalNames()` to list the folder global names for the email you are using. |
| 19 | +- Common folder names are `INBOX`, `INBOX.Archive`, `INBOX.Drafts`, `INBOX.Sent`, `INBOX.Spam`, `INBOX.Trash`. |
| 20 | + If you have `MailService` available in your class, you can call `$this->mailService->getFolderGlobalNames()` to list the folder global names for the email you are using. |
19 | 21 | - Multiple folders can be added to the `save_sent_message_folder` key to save a copy of the outgoing email in each folder. |
20 | 22 |
|
21 | | -`File` writes each message individually in a file named after the configured format, placed in the configured directory. From here the files may be used for sending via another transport mechanism, or simply as logs. |
| 23 | +`File` writes each message individually in a file named after the configured format, placed in the configured directory. |
| 24 | +From here the files may be used for sending via another transport mechanism, or simply as logs. |
22 | 25 |
|
23 | 26 | `InMemory` saves the message in memory, allowing access to the last "sent" message via the `getLastMessage()` function. |
24 | 27 |
|
25 | | -- As the email is not sent, this transport can be helpful in development, with the access to the message being potentially useful in tests as well |
| 28 | +- As the email is not sent, this transport can be helpful in development, with the access to the message being potentially useful in tests as well. |
26 | 29 |
|
27 | 30 | ```php |
28 | 31 | $this->mailService->setBody('First email body'); |
|
0 commit comments