-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fe402c
commit bffb267
Showing
1 changed file
with
1 addition
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,10 @@ | |
```python | ||
import base64 | ||
import os | ||
import json | ||
from sendgrid import SendGridAPIClient | ||
from sendgrid.helpers.mail import ( | ||
Mail, Attachment, FileContent, FileName, | ||
FileType, Disposition, ContentId) | ||
try: | ||
# Python 3 | ||
import urllib.request as urllib | ||
except ImportError: | ||
# Python 2 | ||
import urllib2 as urllib | ||
|
||
import os | ||
import json | ||
from sendgrid import SendGridAPIClient | ||
from sendgrid.helpers.mail import Mail | ||
|
||
message = Mail( | ||
from_email='[email protected]', | ||
|
@@ -46,4 +34,4 @@ try: | |
except Exception as e: | ||
print(e.message) | ||
|
||
``` | ||
``` |