format the mail content