def _check_values(self):
if not self.__api_key:<EOL><INDENT>raise PMMailMissingValueException('<STR_LIT>')<EOL><DEDENT>elif not self.__sender:<EOL><INDENT>raise PMMailMissingValueException('<STR_LIT>')<EOL><DEDENT>elif not self.__to:<EOL><INDENT>raise PMMailMissingValueException('<STR_LIT>')<EOL><DEDENT>elif (self.__template_id or self.__template_model) and not all([self.__template_id, self.__template_model]):<EOL><INDENT>raise PMMailMissingValueException(<EOL>'<STR_LIT>')<EOL><DEDENT>elif not any([self.__template_id, self.__template_model, self.__subject]):<EOL><INDENT>raise PMMailMissingValueException('<STR_LIT>')<EOL><DEDENT>elif not self.__html_body and not self.__text_body and not self.__template_id:<EOL><INDENT>raise PMMailMissingValueException('<STR_LIT>')<EOL><DEDENT>if self.__track_opens and not self.__html_body:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT>
Make sure all values are of the appropriate
type and are not missing.