Skip to main content

Send an email from the command line using Python and a SendGrid API key.

Project description

Python script to send an email with SendGrid using a SendGrid API Key

Install

pip install sendgridsend

Use:

# Python GIt Clone version

.\SG.py `
  -ApiKey "SG.xxxxxx" `
  -From you@example.com `
  -To alice@example.com,bob@example.com `
  -Subject "Hello" `
  -Text "This is a test." `
  -Cc carol@example.com `
  -Bcc dan@example.com

# PIP version
sendgridsend `
  -ApiKey "SG.xxxxxx" `
  -From you@example.com `
  -To alice@example.com,bob@example.com `
  -Subject "Hello" `
  -Text "This is a test." `
  -Cc carol@example.com `
  -Bcc dan@example.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sendgridsend-0.1.3.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sendgridsend-0.1.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file sendgridsend-0.1.3.tar.gz.

File metadata

  • Download URL: sendgridsend-0.1.3.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for sendgridsend-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bfbebd53f15b966b8bdcc1a63480d8798e1541469cfde6991fb1eaa8c66c66d3
MD5 c01f7e08e1de48d329f1082a319ae457
BLAKE2b-256 3e45b326c7301fc1f3390a58bbb42dfea33f89001fba5c26c64ba1fe9631ce46

See more details on using hashes here.

File details

Details for the file sendgridsend-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sendgridsend-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for sendgridsend-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d686e332948b0c5b52987b2c27633157854b087774e8c4923b6ace0bb9dbd5bb
MD5 678606dc76bfb4b8b70a2e7f25b902d7
BLAKE2b-256 04bb8e45c4a4a877cc87ed667f19dad2dbeb9114453accb812a3dbeb3dfe50fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page