Skip to content

djrobstep/emailx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emailx: easy as hell email sending for python

Install like this:

pip install emailx

Use like this:

from emailx import Email, smtp_connection

SMTP = 'smtp.example.com'

LOGIN = ('alex', 'password123')

dummy_recipients = 'Alex <alex+testing@example.com>'

with smtp_connection(SMTP, LOGIN) as c:
    e = Email(
        source='Alex <alex@example.com>',
        subject='Hello',
        body='Body',
        html_body='<html>Body</html>',
        to_addresses='Bobby <bobby@example.com',
        bcc_addresses='Kim <kim@example.com>',
        attachments={
          'a.csv': csv_data
        }
    )
    c.send(e)

About

Extremely simple emailing for python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published