fix application email formatting