an auto mailer to send emails in batch for you
Project description
學術部寄信程式
Requirements
- python 3.X 64bit
- 套件皆有內建,不需額外安裝
Usage
- 請不要把信件內容push上來,負責人可以寫完信之後zip好傳給其他人
- 請複製 letters 資料夾中的 template 來創建新的信件
- content.html 放信件內文
- 記得在內文中加入$recipient,此處會被替換成收件人,及其稱謂
- recipients.csv 收件人及信箱名單
- 可以用 excel 編輯 csv 檔案,格式詳見 template
- 第一欄填收件人姓名,第二欄填收件人信箱
- 如果是臺大的信箱,可以不用填 '@ntu.edu.tw',會自動加上去
- config.json 裡面可以修改信件設定
- subject 為主旨
- from 為寄件人名稱顯示,如果 from 留空白會顯示你原本的名稱
- recipientTitle 裡面的 Title 不是空字串則會把這個 title 接到收件人姓名後面
- lastNameOnly 如果是 true,使用「姓氏+稱謂」,反之則使用「全名+稱謂」
- attachments 資料夾裡放要附加的檔案
- 執行時使用-a 選項來附加,預設不附加檔案,下面有範例
- 如果你很在乎順序的話,取檔名的時候記得要確認順序
- account-default.ini的檔名改成account.ini 裡面放自己的計中帳密
- 把檔案寄給別人時這個要改掉,不然大家都知道了
Run
python mailer_invite.py LETTER
python3 mailer_invite.py LETTER
LETTER is the name of the folder in the 'letters' folder where your email lives
Options
-h, --help show help message and exit
-a, --attach attach files in 'letters/LETTER/attachments' folder to the email
-t, --test send email in test mode (to yourself)
Examples
python3 mailer_invite.py template -t
python mailer_invite.py letter1 -a
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
ntuee-mailer-2.0.0.tar.gz
(12.8 kB
view hashes)
Built Distribution
Close
Hashes for ntuee_mailer-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8e8d89fb8744be20bcd4e18f6b82e22e6b5c57efabd059f880fb17404def063 |
|
MD5 | d1929ebe6e06090e94734c4963e7e565 |
|
BLAKE2b-256 | a2a854c7e40eb39f1d0a4a1cf8df5cab9a655f7b5c6aff5c8bded1dd17e087d2 |