Object oriented API to email messages to parse and create well formed email messages