improve formatting of mail logging
Merge pull request #4653 from alprs/fix/mail-log-string

Improve formatting of mail logging