A postman helps you to send cold mails
Project description
cold-postman
cold_postman is a marketing tool to help users write cold mails in markdown and send them via a manageable csv file.
Installation
pip install cold_postman
Initialize the config
python -m cold_postman init db
python -m cold_postman init config
About config.yaml
batch_num: 10 # mails sent per batch
password: '' # password
smtp_port: 587 # port
smtp_server: smtp.example.com # smtp server
user: 'example#example.com' # user mail
from: 'Mr.Example'
About control csv
Control csv is the receiver list. Columns decribed as below:
first_name
: First name of the receiver.last_name
: Last name of the receiver.email
: Receiver's mail address.last_sent
: Timestamp of last contact.enabled
: (int)[1, 0]
,1
=enabled.0
=disabled, which will be skiped while executing.
Send Mail
Command to start the sending task:
# usage: __main__.py [-h] [-c CONFIG] [-d CRMDB] -m MESSAGE -t TITLE -s SIGNATURE [-a ATTACH]
# options:
# -h, --help show this help message and exit
# -c CONFIG, --config CONFIG
# (Filepath) The file path of the config.
# -d CRMDB, --crmdb CRMDB
# (Filepath) The file path of the crm DB.
# -m MESSAGE, --message MESSAGE
# (Filepath) The email content in markdown.
# -t TITLE, --title TITLE
# (str) The email title
# -s SIGNATURE, --signature SIGNATURE
# (Filepath) The signature in markdown
# -a ATTACH, --attach ATTACH
# (Filepath) The attachment.
python -m cold_postman -m message.md -t 'Subject of the Mail' -s signature.md -a attachment.zip
Prepare a markdown content
The markdown content is converted to rtf via
markdown2
, which supports all the stardard syntax.
The image wrapped in inline has to be written as following syntax.
![image_cid](file_path.png)
The alternative description will be applied as a cid in rtf, so please name it carefully and DO NOT be duplicated. To prevent from missing image, an absolute file path is recommended for attached image.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cold_postman-0.1.3.tar.gz
.
File metadata
- Download URL: cold_postman-0.1.3.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.11 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca3457190170a7e25ee67f67b5e8073b4567b84113d63ee3f62fc463704dcb03 |
|
MD5 | f341241fc164b345012f6e19864f3c36 |
|
BLAKE2b-256 | 8d04da856c6434db306e754718d11853be585876d3f2b48c339ea9a8a8f344e8 |
Provenance
File details
Details for the file cold_postman-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: cold_postman-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.11 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebc48cb942347366e1e4249de63cca15181d2401cfc9fda6a6b142854b90fe89 |
|
MD5 | 16956fd0fe29584889bb11e8bcfd80e1 |
|
BLAKE2b-256 | 468b6e5375440b5434c8370c10d31df66f8469bd925c0b8cd6a974647f4da439 |