#NEWLINE# def send_email( self , mail_sender ) : #NEWLINE# #INDENT# subst = dict ( app_title = mail_sender . app_title , board_title = self . board . title , email = self . email , host_name = self . host . fullname , host_email = self . host . email , confirmation_url = self . confirmation_url ) #NEWLINE# message = ( _ ( '\n        Hello,\n\n        You were invited by %(host_name)s (%(host_email)s) to the board "%(board_title)s".\n\n        To view the board, click on this link : %(confirmation_url)s.\n\n        If you don\'t already have an account, register with email %(email)s and you will automatically join the board.\n\n        See you soon on %(app_title)s.\n        ' ) % subst ) #NEWLINE# mail_sender . send ( ( _ ( '%(app_title)s: Invitation to the board "%(board_title)s"' ) % subst ) , [ self . email ] , textwrap . dedent ( message ) . strip ( ) )