Public | Automated Build

Last pushed: a year ago
Short Description
My wrapper functions for smtplib python library
Full Description

smtplib-wrapper

wrapper functions of smtplib python library

Installation

Install into python project

pip install https://github.com/shadiakiki1986/smtplib-wrapper

Manual install in pew virtualenv

[sudo] apt-get update
[sudo] apt-get install python-pip python-virtualenv python-dev
pip install pew
pew new -d ENV2
pew in ENV2 python setup.py install

Requirements

The sendemail2 function requires the /usr/sbin/sendmail executable.
To install it run [sudo] apt-get install postfix and configure postfix

Unit tests

I have no unit tests

Integration Testing

  • Install docker-engine (requires 64-bit OS)
  • If desired, can run apt-cacher
  • Run built image (check example below)

    • either just pull the automated build image and run
      docker run -i -t shadiakiki1986/smtplib-wrapper server port username password email1 email2 (ntlm|login)
      
    • or build dockerfile manually (skip --build-arg USE_APT_CACHER if apt-cacher not running)
      docker build --build-arg USE_APT_CACHER -t smtplib-wrapper .
      docker run -i -t smtplib-wrapper server port username password email1 email2 (ntlm|login)
      
    • Examples
    • gmail
      docker run -it shadiakiki1986/smtplib-wrapper smtp.gmail.com 587 shadiakiki1986 [my gmail password] shadiakiki1986@gmail.com [a 2nd email] login
      
    • MS Outlook Exchange
      docker run -it smtplib-wrapper [OWA URL] 587 [OWA username (without prefix "domain\\")] [password (in quotes if special characters)] [OWA email address (e.g. example@owaserver.com)] [2nd email] ntlm
      
  • check that a test email is received at email1 and email2

Docker Pull Command
Owner
shadiakiki1986
Source Repository

Comments (0)