def send(self, msg):
app = self.app or current_app<EOL>mailer = app.extensions['<STR_LIT>']<EOL>mailer.start()<EOL>if not hasattr(msg, '<STR_LIT>'):<EOL><INDENT>result = mailer.send(msg)<EOL><DEDENT>else:<EOL><INDENT>result = map(lambda message: mailer.send(message), msg)<EOL><DEDENT>mailer.stop()<EOL>return result<EOL>
Send the message. If message is an iterable, then send 
        all the messages.