Enveloop Docs
Sign up for Enveloop!
  • Enveloop Docs
  • Overview
    • ✨Features
  • Getting Started
    • Introduction to Enveloop
    • Creating a Template
    • Formatting / Dynamic Content
    • Sending a test message
    • Adding a Sending Domain
    • Deploying your first message
  • Product Guides
    • Elements
      • 🔋Table
    • Using Shared Sections
    • Markdown for Formatting
    • Mustache for Dynamic Content
    • Creating a Verified Sender
    • Logging
    • Monitoring
    • Webhooks
    • Themes
  • Integrations
    • Do I need integrations?
    • SMS Integrations
      • Twilio
      • TextGrid
    • Email Integrations
      • SendGrid
      • Postmark
      • Mailgun
      • Amazon SES
      • SMTP
        • ✉️Amazon SES
        • ✉️Gmail SMTP
        • ✉️Google Domain SMTP Relay
    • Partner Integrations
      • Fly.io
  • Enveloop API
    • Getting Started with Enveloop API
    • Core API Endpoints
      • Connecting to the Enveloop API
      • POST /messages
      • GET /templates/:slug
    • Languages and Frameworks
      • 🟢NodeJS
      • 🏮Ruby on Rails
      • 🟡Python
      • 🏮Ruby
  • Settings
    • Sending IPs
  • Company
    • About Us
    • 👩‍⚖️Terms of Service
    • 😎Privacy Policy
Powered by GitBook
On this page
  • Install the Enveloop node package
  • Send Messages
  1. Enveloop API
  2. Languages and Frameworks

Python

Send messages on Enveloop by using the python SDK

Install the Enveloop node package

pip

python3 -m pip install enveloop-py

Send Messages

from enveloop_py import enveloop

client = enveloop.connect("test_eYLQRrzxLcLAlmb2H5BXIFSUor3h/tRr")

enveloop.sendMessage({
  template="user-welcome",
  to="leslie@knope.com",
  from_address="Chris Traeger <chris@pawnee.parksandrec.gov>",
  subject="Welcome to Pawnee",
  template_variables={
    "name": "Leslie Knope"
  }
})

Last updated 1 year ago

🟡