Taking care of unescaped characters in email text
Adding missing $ to static variable