def send_messages(self, email_messages):
if not email_messages:<EOL><INDENT>return<EOL><DEDENT>sent = self._send(email_messages)<EOL>if sent:<EOL><INDENT>return len(email_messages)<EOL><DEDENT>return <NUM_LIT:0><EOL>
Sends one or more EmailMessage objects and returns the number of email
messages sent.