def _send(self, messages):
if len(messages) == <NUM_LIT:1>:<EOL><INDENT>to_send = self._build_message(messages[<NUM_LIT:0>])<EOL>if to_send is False:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>else:<EOL><INDENT>pm_messages = list(map(self._build_message, messages))<EOL>pm_messages = [m for m in pm_messages if m]<EOL>if len(pm_messages) == <NUM_LIT:0>:<EOL><INDENT>return False<EOL><DEDENT>to_send = PMBatchMail(messages=pm_messages)<EOL><DEDENT>try:<EOL><INDENT>to_send.send(test=self.test_mode)<EOL><DEDENT>except:<EOL><INDENT>if self.fail_silently:<EOL><INDENT>return False<EOL><DEDENT>raise<EOL><DEDENT>return True<EOL>
A helper method that does the actual sending.