<gh_stars>1-10
import requests
from pprint import pprint

headers = {'Mailsac-Key': 'YOUR_API_KEY_HERE'}
url = 'https://mailsac.com/api/outgoing-messages'
mail = { 'to':'<EMAIL>',
         'from':'<EMAIL>',
         'subject':'Hello Myfriend',
         'text': 'mailsac allows for sending of email'
       }

r = requests.post(url, data=mail, headers=headers)
pprint(r.json())
'''
{'from': '<EMAIL>',
 'id': 'fe-tgitrk8dbga',
 'to': ['<EMAIL>']}
'''

import requests
from pprint import pprint

headers = {'Mailsac-Key': 'YOUR_API_KEY_HERE'}
url = 'https://mailsac.com/api/outgoing-messages'
mail = { 'to':'<EMAIL>',
         'from':'<EMAIL>',
         'subject':'Hello Myfriend',
         'text': 'mailsac allows for sending of email'
       }

r = requests.post(url, data=mail, headers=headers)
pprint(r.json())
'''
{'from': '<EMAIL>',
 'id': 'fe-tgitrk8dbga',
 'to': ['<EMAIL>']}
'''
{'from': '<EMAIL>',  'id': 'fe-tgitrk8dbga',  'to': ['<EMAIL>']}