Skip to content

SubashPradhan/python-email-send

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Install dependencies

$ pip3 install nylas

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!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%