summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-01-06 12:45:55 +0100
committerGitHub <noreply@github.com>2017-01-06 12:45:55 +0100
commited25e2ac9d79a860736c5440cbd41043c9bc38a7 (patch)
treea83959d3ae7cca4b0552dc3cf22dcb888f108db8 /system
parent776dd16bdb659421450fe274a941521cdaabfe83 (diff)
parenta309badf3a73f427af030e790e5080347da67372 (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 fbf0cb7dc..bfff8953b 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1195,6 +1195,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]);