Fixes #1135 - Use the encoding attribute from EmailInfo to create an email message