Skip to main content

Mailipy Logo

Mailipy

This is a software to make the task of sending bulk emails to a list of contacts easier.

Installation

$ pip install mailipy

In order to send emails, you need to first generate them and later send them.

Generating emails

You need to prepare a template.md file which must have a YAML front matter (similarly to what you find in Jekyll). See the example for the keywords required in the front matter.

The command to create the emails is the following:

$ mailipy-gen template.md contacts.csv

This will create as many emails as there are records in contacts.csv. The emails will be stored in outbox/ by default. You can use a third parameter to change the outbox destination folder.

Sending emails

Once you created the emails, run the following command (changing the outbox directory accordingly):

$ mailipy-send mail.example.com:528 my_username outbox

The command will inform you of how many emails are going to be sent, and then will prompt you for a password.

Contributing

You can make changes to the gen.py and send.py scripts, and test these changes by running a local version of Mailipy. After testing your changes, you can open a pull request.

Running a local version of Mailipy

  1. Make sure you have poetry installed in your system.
  2. Run poetry install followed by poetry shell from the root of the source directory.
  3. Now you can run mailipy-gen and mailipy-send, and these will include your local changes. You can verify that you're running a different binary than the globally installed one by running which mailipy-gen: the command will return the full path of the binary you're using.

Running tests

After installing with poetry install and entering the poetry shell, run the following:

$ pytest

The command will search recursively for files named *_test.py and run them. See the pytest documentation.

Release files for mailipy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mailipy 0.1.0
File Size Uploaded
mailipy-0.1.0.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mailipy 0.1.0
File Interpreter ABI Platform
mailipy-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / mailipy-0.1.0.tar.gz

Download URL mailipy-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3529c4c010951d2f60c9acbd907f20ec39181ebe88bb1394bb016588958103c9
BLAKE2b-256 checksum
How to use checksums
4e119017e05485992036d0e192006e7c4147428e1203d962c658700362d2b174
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.13.1 Darwin/23.6.0

Release files / mailipy-0.1.0-py3-none-any.whl

Download URL mailipy-0.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
377832c4c9fb03a543cae55bee35e96eff1dec9b823c0fb330ff2caa021ccf52
BLAKE2b-256 checksum
How to use checksums
58aaa196d398da07f7a5e4308a12d81ad3bddccf7d9294866b42b1e1c1a33069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.13.1 Darwin/23.6.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page