summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Sendmail.php
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2010-09-01 17:40:01 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2010-09-01 17:40:01 +0000
commit538df03dd14f93419209ef61107a674575828e25 (patch)
treef5874b59fa616d538abaf08f9c9bf61724788bba /modules/gallery/libraries/Sendmail.php
parent940f9330efca76c84e7a645cafc93acd2751a225 (diff)
parent78c590ebaee738435260e3b0bf6cb8fb5431a08d (diff)
Manually merged changes to .htaccess file resolving conflicts due to my changes of the file.
Diffstat (limited to 'modules/gallery/libraries/Sendmail.php')
-rw-r--r--modules/gallery/libraries/Sendmail.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/gallery/libraries/Sendmail.php b/modules/gallery/libraries/Sendmail.php
index ded7b2ef..0fa554b4 100644
--- a/modules/gallery/libraries/Sendmail.php
+++ b/modules/gallery/libraries/Sendmail.php
@@ -35,10 +35,12 @@ class Sendmail_Core {
public function __construct() {
$this->headers = array();
- $config = Kohana::config("sendmail");
- foreach ($config as $key => $value) {
- $this->$key($value);
- }
+ $domain = Input::instance()->server("HTTP_HOST");
+ $this->from(module::get_var("gallery", "email_from", "admin@$domain"));
+ $this->reply_to(module::get_var("gallery", "email_reply_to", "public@$domain"));
+ $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" : deserialize($separator));
}
public function __get($key) {