I am having this issue also. As it seems the field for Predefined Header and Predefined Footer, can't contain HTML Code. If i put any text it will be saved where if i put html it will be replaced like this :
From This:
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style> etc...
To this:
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style> etc...
And this code will be sent to the customer
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
When i try to save the settings with HTML inside i get an error like 403 with permission issues.
I also tried to change the file email.php permissions from 0644 to 0755 but again the same thing:
The file is located here : public_html/$domain$/application/views/admin/settings/includes
i don't know what else to try.