5 ms·
Building a Lightweight, Command-Line Newsletter Program
- tux 5y agoGoogle's has free IMAP/POP/SMTP service but there daily email limit is 100/day. ProtonMail dosn't have any free IMAP/POP/SMTP services and there daily email limit is 150/day. So if you don't have many subscribers you should be fine. But you might be better off hosting your own small email server. You'll have much more control over your emails. Good job coding "nwsl" in python, but you can code even lighter version with simple bash script.
- ttyprintk 5y agoA fine way to do it as lightly as necessary. A few things I’d consider to use it myself: - mailbox-side filters to shove unsub and sub requests into folders. Then, the state discovery would read from those folders. This moves a little configuration into the server-side filtering (“Settings” in most webmails) so that I can pick up, for example, requests in non-English. - Automatic subscribe requests would end up in their own folder, where To: addresses are the receiver. For a message to hit this folder, its filter needs to match an admin email. - Non-requests from people would not end up in those folders, and I would accumulate those as reactions or comments —- collected as a comment-section for the next newsletter. - Templating is helpful because there are laws around mailing list content. Perhaps more importantly, a mailto: link in the list-unsubscribe header.
- vhodges 5y agoRelated(?): https://www.paperboy.email/ https://www.paperboy.email/ Also: Sendgrid is free to start and seems cheap enough for a bit of volume. I use them for transactional emails and $DAYJOB uses them too.