From 16e361736f6ee5912022481f273bcbdbc7a6145f Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 27 Sep 2024 19:07:40 -0500 Subject: added code for sending the newsletter --- lxf-newsletter.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lxf-newsletter.txt diff --git a/lxf-newsletter.txt b/lxf-newsletter.txt new file mode 100644 index 0000000..6eef369 --- /dev/null +++ b/lxf-newsletter.txt @@ -0,0 +1,6 @@ +from lttr.models import Newsletter, NewsletterMailing +from lttr.mailer import SendShit +n = Newsletter.objects.get(pk=2) # test newsletter +m = NewsletterMailing.objects.get(pk=141) # mailing +s = SendShit(n, m) +s.send_mailings() -- cgit v1.2.3-70-g09d2