Added createEmailMessage() method.