#NEWLINE# def send( self , body , **kw ) : #NEWLINE# #INDENT# "\n        Mimic sending an email message, but really just print what would be\n        sent to console.  Keyword arguments override configuration\n        defaults (cc, bcc, etc).\n\n        :param body: The message body to send\n        :type body: ``multiline string``\n        :keyword to: List of recipients (generally email addresses)\n        :type to: ``list``\n        :keyword from_addr: Address (generally email) of the sender\n        :type from_addr: ``str``\n        :keyword cc: List of CC Recipients\n        :type cc: ``list``\n        :keyword bcc: List of BCC Recipients\n        :type bcc: ``list``\n        :keyword subject: Message subject line\n        :type subject: ``str``\n        :returns: Boolean (``True`` if message is sent successfully, ``False``\n         otherwise)\n\n        **Usage**\n\n        .. code-block:: python\n\n            # Using all configuration defaults\n            app.mail.send('This is my message body')\n\n            # Overriding configuration defaults\n            app.mail.send('My message body'\n                to=['john@example.com'],\n                from_addr='me@example.com',\n                cc=['jane@example.com', 'rita@example.com'],\n                subject='This is my subject',\n                )\n\n        " #NEWLINE# params = self . _get_params ( ** kw ) #NEWLINE# msg = ( ( '\n' + ( '=' * 77 ) ) + '\n' ) #NEWLINE# msg += 'DUMMY MAIL MESSAGE\n' #NEWLINE# msg += ( ( '-' * 77 ) + '\n\n' ) #NEWLINE# msg += ( 'To: %s\n' % ', ' . join ( params [ 'to' ] ) ) #NEWLINE# msg += ( 'From: %s\n' % self [ 'from_addr' ] ) #NEWLINE# msg += ( 'CC: %s\n' % ', ' . join ( params [ 'cc' ] ) ) #NEWLINE# msg += ( 'BCC: %s\n' % ', ' . join ( params [ 'bcc' ] ) ) #NEWLINE# if ( params [ 'subject_prefix' ] not in [ None , '' ] ) : #NEWLINE# #INDENT# msg += ( 'Subject: %s %s\n\n---\n\n' % ( params [ 'subject_prefix' ] , params [ 'subject' ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg += ( 'Subject: %s\n\n---\n\n' % params [ 'subject' ] ) #NEWLINE# #UNINDENT# msg += ( body + '\n' ) #NEWLINE# msg += ( ( '\n' + ( '-' * 77 ) ) + '\n' ) #NEWLINE# print ( msg ) #NEWLINE# return True