This file contains hidden or 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
#!/bin/bash | |
# Email setup | |
SENDGRID_API_KEY="SG.xxxxxx" | |
FILENAME_ATTACH="bash test file" | |
FILENAME_ZIP="test.txt" | |
FILENAME_BASE64_TMP="test.txt" | |
EMAIL_TO="[email protected]" | |
EMAIL_SUBJECT="test bash file" | |
EMAIL_FROM="[email protected]" |
This file contains hidden or 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
import os | |
import base64 | |
from sendgrid import SendGridAPIClient | |
from sendgrid.helpers.mail import (Mail, Attachment, FileContent, FileName, FileType, Disposition) | |
message = Mail( | |
from_email='[email protected]', | |
to_emails='[email protected]', |
NewerOlder