def _setup_message(self):
if self.content == '<STR_LIT:html>':<EOL><INDENT>self._message = MIMEMultipart('<STR_LIT>')<EOL>part = MIMEText(self.body, '<STR_LIT:html>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>self._message = MIMEMultipart()<EOL>part = MIMEText(self.body, '<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>self._message.preamble = '<STR_LIT>'<EOL>self._message.attach(part)<EOL>self._message['<STR_LIT>'] = self.sender<EOL>self._message['<STR_LIT>'] = COMMASPACE.join(self.to)<EOL>if self.cc:<EOL><INDENT>self._message['<STR_LIT>'] = COMMASPACE.join(self.cc)<EOL><DEDENT>self._message['<STR_LIT>'] = formatdate(localtime=True)<EOL>self._message['<STR_LIT>'] = self.subject<EOL>for part in self._parts:<EOL><INDENT>self._message.attach(part)<EOL><DEDENT>
Constructs the actual underlying message with provided values