diff options
author | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-09-02 22:32:46 +0300 |
---|---|---|
committer | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-09-02 22:32:46 +0300 |
commit | 9572c664d2bfff0877d4f2062eb0ef6665a109cf (patch) | |
tree | 89c8e2868c1490a0bc578ce4a69c0ed7fae8b5bf /modules/gallery/libraries | |
parent | a0033ce75968b3c134c0e439046f135b1e646550 (diff) | |
parent | 511826a33cbbf03bf1e3cb151f1a181b8e6723e8 (diff) |
Merge remote branch 'gallery3/master'
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r-- | modules/gallery/libraries/Sendmail.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/gallery/libraries/Sendmail.php b/modules/gallery/libraries/Sendmail.php index ded7b2ef..a93be736 100644 --- a/modules/gallery/libraries/Sendmail.php +++ b/modules/gallery/libraries/Sendmail.php @@ -35,10 +35,11 @@ class Sendmail_Core { public function __construct() { $this->headers = array(); - $config = Kohana::config("sendmail"); - foreach ($config as $key => $value) { - $this->$key($value); - } + $this->from(module::get_var("gallery", "email_from", "")); + $this->reply_to(module::get_var("gallery", "email_reply_to", "")); + $this->line_length(module::get_var("gallery", "email_line_length", 70)); + $separator = module::get_var("gallery", "email_header_separator", null); + $this->header_separator(empty($separator) ? "\n" : unserialize($separator)); } public function __get($key) { |