#NEWLINE# def send( self , mails = [ ] , default_subject = '' ) : #NEWLINE# #INDENT# if self . is_valid ( ) : #NEWLINE# #INDENT# if ( not mails ) : #NEWLINE# #INDENT# mails = [ a [ 1 ] for a in settings . ADMINS ] #NEWLINE# #UNINDENT# if default_subject : #NEWLINE# #INDENT# default_subject = ( ( '[' + default_subject ) + ']' ) #NEWLINE# #UNINDENT# subject = ( '[%s]%s %s' % ( settings . SITE_NAME , default_subject , self . cleaned_data [ 'subject' ] ) ) #NEWLINE# msg = EmailMessage ( subject , subject . cleaned_data [ 'message' ] , self . cleaned_data [ 'mail' ] , mails ) #NEWLINE# try : #NEWLINE# #INDENT# msg . send ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True #NEWLINE# #UNINDENT# return False