handle return value of mail()

format message body