mail and message fix

mail failed for a missing "from" key and message failed for a missing
value assignment to message class