Commit 6e209cc7 by Carsten Brandt

Merge pull request #6770 from apyii/patch-1

Update tutorial-mailing.md
parents b4ba430a 6a738a1e
...@@ -32,7 +32,7 @@ return [ ...@@ -32,7 +32,7 @@ return [
Basic usage Basic usage
----------- -----------
Once 'mailer' component is configured, you can use the following code to send an email message: Once the 'mailer' component is configured, you can use the following code to send an email message:
```php ```php
Yii::$app->mailer->compose() Yii::$app->mailer->compose()
...@@ -44,7 +44,7 @@ Yii::$app->mailer->compose() ...@@ -44,7 +44,7 @@ Yii::$app->mailer->compose()
->send(); ->send();
``` ```
In above example method `compose()` creates an instance of the mail message, which then is populated and sent. In the above example the method `compose()` creates an instance of the mail message, which then is populated and sent.
You may put more complex logic in this process if needed: You may put more complex logic in this process if needed:
```php ```php
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment