added in missing end a tag in email, added in download type