Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.add_cc(opts.get('cc', []))
self.from_email = opts.get('from_email', '')
self.from_name = opts.get('from_name', '')
self.subject = opts.get('subject', '')
self.text = opts.get('text', '')
self.html = opts.get('html', '')
self.bcc = []
self.add_bcc(opts.get('bcc', []))
self.reply_to = ''
self.set_replyto(opts.get('reply_to', ''))
self.files = opts.get('files', {})
self.headers = {}
self.set_headers(opts.get('headers', {}))
self.date = opts.get('date', rfc822.formatdate())
self.content = opts.get('content', {})
self.smtpapi = opts.get('smtpapi', SMTPAPIHeader())