summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps V <kristaps@viitols.com>2016-08-12 16:55:36 +0200
committerKristaps V <kristaps@viitols.com>2016-08-12 16:55:36 +0200
commita309badf3a73f427af030e790e5080347da67372 (patch)
treebd7db8d8ee329b65c0004035150158745c8c52a3
parentb7b5ee6bee6395460a7f628cb16f75b0777ea44b (diff)
Fix custom user agent not working
Signed-off-by: Kristaps V <kristaps@viitols.com>
-rw-r--r--system/libraries/Email.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 50d0cd04e..426731135 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1206,6 +1206,7 @@ class CI_Email {
*/
protected function _build_headers()
{
+ $this->set_header('User-Agent', $this->useragent);
$this->set_header('X-Sender', $this->clean_email($this->_headers['From']));
$this->set_header('X-Mailer', $this->useragent);
$this->set_header('X-Priority', $this->_priorities[$this->priority]);