Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bug fix

  • Loading branch information...
commit 1d35cd2a25231b7fd3b23b79786b8b065b7930e7 1 parent 2611b4d
elbuo8 authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  sendgrid/message.py
View
3  sendgrid/message.py
@@ -31,13 +31,16 @@ def __init__(self, **opts):
"""
super(Mail, self).__init__()
+ self.to = []
self.add_to(opts.get('to', []))
+ self.to_name = []
self.add_to_name(opts.get('to_name', []))
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 = opts.get('reply_to', '')
self.files = opts.get('files', {})
Please sign in to comment.
Something went wrong with that request. Please try again.