Permalink
Browse files

update doc

  • Loading branch information...
1 parent 4d9783b commit 9014a804dbc3c2ee21031d976f5c9d5c572a5526 elbuo8 committed Mar 8, 2014
Showing with 11 additions and 1 deletion.
  1. +7 −1 README.md
  2. +4 −0 README.rst
View
@@ -5,7 +5,7 @@ This library allows you to quickly and easily send emails through SendGrid using
**Warning!** This library was recently updated to bring it up to date with all of our other libraries. It behaves completely different from the previous release. Also, SMTP has been deprecated in support for the Web API.
-## Install
+## Install
```bash
pip install sendgrid
@@ -42,13 +42,19 @@ message = sendgrid.Mail()
message.add_to('example@sendgrid.com')
# or
message.add_to('Example Dude <example@email.com>')
+# or
+message.add_to(['Example Dude <example@email.com>', 'john@email.com'])
+
```
### Adding BCC Recipients
```python
message = sendgrid.Mail()
message.add_bcc('example@email.com')
+# or
+message.add_bcc(['Example Dude <example@email.com>', 'john@email.com'])
+
```
### Setting the Subject
View
@@ -49,6 +49,8 @@ Adding Recipients
message.add_to('example@email.com')
# or
message.add_to('Example Dude <example@email.com>')
+ # or
+ message.add_to(['Example Dude <example@email.com>', 'john@email.com'])
Adding BCC Recipients
~~~~~~~~~~~~~~~~~~~~~
@@ -57,6 +59,8 @@ Adding BCC Recipients
message = sendgrid.Mail()
message.add_bcc('example@email.com')
+ # or
+ message.add_bcc(['Example Dude <example@email.com>', 'john@email.com'])
Setting the Subject
~~~~~~~~~~~~~~~~~~~

0 comments on commit 9014a80

Please sign in to comment.