CodeIgniter Forums

Full Version: Remove User-Agent Header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

For Security reasons. How to remove these two information in the received mail header:

User-Agent: CodeIgniter
X-Mailer: CodeIgniter


Thanks for helping.
system/libraries/Email.php

public $useragent = 'CodeIgniter';
(03-04-2017, 12:21 PM)lisheng51 Wrote: [ -> ]system/libraries/Email.php

public $useragent = 'CodeIgniter';

Do not change the Email.php in the system folder

https://www.codeigniter.com/user_guide/l...references

$config['useragent'] = 'NewAgent';
(03-05-2017, 02:43 AM)Paradinight Wrote: [ -> ]
(03-04-2017, 12:21 PM)lisheng51 Wrote: [ -> ]system/libraries/Email.php

public $useragent = 'CodeIgniter';

Do not change the Email.php in the system folder

https://www.codeigniter.com/user_guide/l...references

$config['useragent'] = 'NewAgent';

Excellent. Thank you so much.