GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nylas-samples/python-email-send: Send an email with the Nylas Python SDK!

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SendEmail.py
SendEmail.py
 
 
pull_request_template.md
pull_request_template.md
 
 

Repository files navigation

python-email-send

This sample will show you to easily send an email with the Nylas Python SDK.

You can follow along step-by-step in our blog post "How to Send Emails with the Nylas Python SDK".

Setup

System dependencies

  • Python v3.x

Gather environment variables

You'll need the following values:

NYLAS_API_KEY=
NYLAS_API_URI=
NYLAS_GRANT_ID=
RECIPIENT_EMAIL=

Add the above values to a new .env file:

$ touch .env # Then add your env variables

Initiate virtual envirnoment

python3 -m venv path/to/venv
source path/to/venv/bin/activate

Install dependencies

$ pip3 install nylas
$ pip3 install python-dotenv

Usage

Run the script using the python3 command:

$ python3 SendEmail.py

When your message is successfully sent, you'll get the following output in your terminal:

Message "With Love, from Nylas" was sent with ID 111111111111111111

Learn more

Visit our Nylas Python SDK documentation to learn more.

About

Send an email with the Nylas Python SDK!

developer.nylas.com/docs/developer-tools/sdk/python-sdk/

Topics

emailnylaspythonsample

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

1 star

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

Generated from nylas-samples/nylas-code-samples-starter
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.