updated Email subject and from field
formatted code