Update KEmail.php

Using $command->bindParam(':additional_headers',json_encode($additional_headers),PDO::PARAM_STR); gives an error: "Fatal error: Only variables can be passed by reference" in E_STRICT error handling mode.