Browse Source

Update Email.md

Mark Scherer 3 years ago
parent
commit
7df9789a2a
1 changed files with 10 additions and 10 deletions
  1. 10 10
      docs/Mailer/Email.md

+ 10 - 10
docs/Mailer/Email.md

@@ -29,21 +29,21 @@ Email::config(Configure::consume('Email'));
 ```
 They will read from Configure what you defined there, e.g for sending SMTP mails.
 ```
-'Email' => array(
-    'default' => array(
-        'from' => 'your@email.com'
-    )
-),
-'EmailTransport' => array(
-    'default' => array(
+'Email' => [
+    'default' => [
+        'from' => 'your@email.com',
+    ],
+],
+'EmailTransport' => [
+    'default' => [
         'className' => 'Smtp',
         'host' => 'smtp.hostname.com',
         'username' => 'your@email.com',
         'password' => 'yourpwd',
         'tls' => true,
-        'port' => 587
-    )
-)
+        'port' => 587,
+    ],
+]
 ```
 
 That's it.