Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CakeEmail constructor now accepts $config

  • Loading branch information...
commit 138aae670a63bd50b2e9acba50352908f960bfec 1 parent 803cd28
@ceeram ceeram authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Cake/Network/Email/CakeEmail.php
View
6 lib/Cake/Network/Email/CakeEmail.php
@@ -270,13 +270,17 @@ class CakeEmail {
/**
* Constructor
+ * @param mixed $config Array of configs, or string to load configs from email.php
*
*/
- public function __construct() {
+ public function __construct($config = null) {
$charset = Configure::read('App.encoding');
if ($charset !== null) {
$this->charset = $charset;
}
+ if ($config) {
+ $this->config($config);
+ }
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.