summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-01-06 12:45:55 +0100
committerAndrey Andreev <narf@devilix.net>2017-01-06 12:47:37 +0100
commit6a5b5e7a426d4ab0055223011727cd382ec72b43 (patch)
tree1897c863acaab5c5165c0e47ab54a7a4a1cd1b49 /system
parent5f7302c7ea5c76fbc3fdcac88aead48deb7adcdb (diff)
Merge pull request #4765 from viitols/develop
Fix CI_Email not sending User-Agent header
Diffstat (limited to 'system')
-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 e25015450..a5a707917 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1215,6 +1215,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]);