Skip to content

Commit ac0e66b

Browse files
committed
updated readme file
1 parent 8b98426 commit ac0e66b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ Next, make sure you merge the `ConfigProvider` to your application's configurati
1717
Because multiple mail services can be defined in the dot-mail module, there can also be requested as controller plugins by following the convention
1818

1919
```php
20+
//calling this plugins without parameters, will return the mail service instead, otherwise will use parameters to send directly the e-mail
2021
$this->sendMail(); //will return the default mail service
2122

2223
$this->sendMailYourMailService(); //will return the mail service named your_mail_service
2324
```
2425

25-
Controller mail plugins are invokable. To send a mail you can use the following 2 methods
26+
Controller mail plugins are invokable. To send an email you can use the following 2 methods
2627

2728
* `$this->sendMail(array $mailConfig)` - will send a mail through a mail service configured based on the $mailConfig param.
2829
The array parameter valid keys are body, subject, to, from, cc, bcc, attachments. The body parameter can be specified as an array too in which case the $body[0] should be the template name to use as mail template and $body[1] should be optionally the template parameters.

0 commit comments

Comments
 (0)