Giter Club home page Giter Club logo

mass-mailer's Introduction

mass-mailer

Python-based mass mailer script

Author: Christian Federmann [email protected]

Version: 2013-03-15

Usage: $ mass_mailer.py [--dry-run] <config.ini> <mail.html|txt> <emails.csv>

Sends an individualised version of mail.html|txt to all recipient email addresses contained in emails.csv; configuration details such as mail server or header fields are read from config.ini.

The following fields inside config.ini are required:

SMTP=smtp.example.org
[email protected]
SUBJECT=Mails without subject would not make sense, right?!

There also are some optional settings:

[email protected] (defaults to FROM address)
[email protected]
FIRST_LASTNAME=Sir or Madam

The mail.html|txt file may contain HTML markup and should be saved in UTF-8 encoding; there is one "special" placeholder {{FIRST_LASTNAME}} which can be used to insert the personalised recipient name into the email. If the name cannot be resolved from the email address, the script will use FIRST_LASTNAME from config.ini, iff available, defaulting to "Sir or Madam" otherwise.

A template ending with extension ".txt" triggers sending of plain text emails.

Email addresses should be given in comma-separated list form, e.g.:

# firstname,lastname,email
John,Doe,[email protected]
,,[email protected]

You can use the optional "--dry-run" flag to run the script in testing mode which will do everything except sending out the actual emails.

It is a wise idea to test any new mail.html|txt or config.ini with your own email address first. The author does not any responsibility for emails sent out with this tool. By using the script, you accept this.

Code is available under BSD-style terms. See LICENSE for more information.

mass-mailer's People

Contributors

cfedermann avatar cspurk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.