Permalink
Browse files

bug fix

  • Loading branch information...
1 parent 2611b4d commit 1d35cd2a25231b7fd3b23b79786b8b065b7930e7 elbuo8 committed Mar 8, 2014
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', {})

0 comments on commit 1d35cd2

Please sign in to comment.