Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Small program to automate typical emails that have file attachments
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.rabbit
AUTHORS
COPYING
README
main.py

README

quicksend

Dependencies:
-------------
Python 3, internet connection, Linux too for file system monitoring.

General:
--------
Quicksend is a way of sending typical emails with specific attachments, quickly.

I have to send off timelogs of my work progress each week, and it's annoying to create the timesheet, export to pdf, open my email, give it a proper subject, attach it, and send it. This sets me up so all I do is create the timesheet and export it.

It works by monitoring a folder on your computer (typically ~/quicksend/unsent), and when it finds a new file, it will check the filetype against the file types in your ~/quicksend/config file and send them to the matched email address with the custom subject and message. Once this is done the file is moved to ~/.quicksend/sent. I've only written and tested this with Gmail but you're welcome to test it with another SMTP server and see how it goes.

Configuration:
--------------

To get started, make sure you have the following structure in your home directory:

.quicksend
 |-- config
 |-- sent
 |-- unsent

Where sent and unsent are folders, and config is a config file with at least this info:

[settings]
password = <your password>
username = <your email account to sign in with>

[filetypes]
<attachment> = <email address>

[<attachment>]
subject = <subject for the email>
message = <body for the email>

Installation:
-------------

First, complete the Configuration section, and you're all set up. From there you just need to start quicksend. I recommend creating an alias in your rc file, and setting that up to start whenever you'd like, however your system does that. Once you have it running, that's all you have to do. Just start saving files to the unsent folder, and quicksend will send them for you.
Something went wrong with that request. Please try again.