Change mail file format to include possibility of no sender.
Change auto happening mail content to include possibililty of no extra info supplied.
Change template formatting to take care of possibility of auto generated mail.