summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-09-27 19:07:40 -0500
committerluxagraf <sng@luxagraf.net>2024-09-27 19:07:40 -0500
commit16e361736f6ee5912022481f273bcbdbc7a6145f (patch)
tree4ce4c91899f4d4820bde5fd8e54b8659957ade37
parent6aa12eed66b56820cd7eaefa92482e60c1feac5c (diff)
added code for sending the newsletter
-rw-r--r--lxf-newsletter.txt6
1 files changed, 6 insertions, 0 deletions
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()