How to use the smtpapi.SMTPAPIHeader function in smtpapi

To help you get started, we’ve selected a few smtpapi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sendgrid / sendgrid-python / sendgrid / message.py View on Github external
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())

smtpapi

Simple wrapper to use SendGrid SMTP API

MIT
Latest version published 2 years ago

Package Health Score

57 / 100
Full package analysis

Popular smtpapi functions

Similar packages