merged message factory implementation for sms and email