Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.072.771 Times

django-mailer 0.1.0

Company: James Tauber
Date Added: October 29, 2013  |  Visits: 244

django-mailer

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)

django-mailer is asynchronous so in addition to putting mail on the queue you need to periodically tell it to clear the queue and actually send the mail.<br /><br />The latter is done via a command extension.<br /><br />Sample Use Cases<br /><br />* a site admin wants to send a one-off announcement to all users on a site<br />* a site admin wants to send a one-off email to a subset of users (e.g. thank you note to users who completed a survey)<br />* a site admin wants to send an email but wants to defer it to a particular date or time (e.g. send out at 9am tomorrow a reminder of the scheduled downtime at 10am)<br />* a site admin wants to send a regular email to a subset of users (e.g. people who haven't logged in for over a month)<br />* a user wants email notification when certain events specific to them happen (e.g. a friend accepts their invitation to join a group, they receive a private message)<br />* a user wants email notification when certain events relevant to a subset of users happen (e.g. there has been a reply to a message board thread or blog entry that the user has subscribed to)<br />* a user doesn't want individual emails for each notification but wants them in digest form (e.g. a daily digest of new posts or a weekly update on friends who have joined)<br /><br />Scope Questions<br /><br />* django-mailer should not manage actual subscriptions to events. Consider the "new reply to message board thread" use case. The overall site would need to keep track of which users subscribed to which threads and then when a thread is updated, django-mailer would be asked to send the same message to that list of users. But the django-notification app should keep track of which users subscribed to which threads and similar use cases.<br /><br />Putting Mail On The Queue<br /><br />Because django-mailer currently uses the same function signature as Django's core mail support you can do the following in your code:<br /><br /># favour django-mailer but fall back to django.core.mail<br />from django.conf import settings<br /><br />if "mailer" in settings.INSTALLED_APPS:<br /> from mailer import send_mail<br />else:<br /> from django.core.mail import send_mail<br /><br />and then just call send_mail like you normally would in Django:<br /><br />send_mail(subject, message_body, settings.DEFAULT_FROM_EMAIL, recipients)<br /><br />Additionally you can send all the admins as specified in the ADMIN setting by calling:<br /><br />mail_admins(subject, message_body)<br /><br />or all managers as defined in the MANAGERS setting by calling:<br /><br />mail_managers(subject, message_body)<br /><br />Clear Queue With Command Extensions<br /><br />With mailer in your INSTALLED_APPS, there will be two new manage.py commands you can run:<br /><br /> * send_mail will clear the current message queue. If there are any failures, they will be marked deferred and will not be attempted again by send_mail.<br /> * retry_deferred will move any deferred mail back into the normal queue (so it will be attempted again on the next send_mail).<br /><br />You may want to set these up via cron to run regularly:<br /><br />* * * * * (cd $PINAX; /usr/local/bin/python2.5 manage.py send_mail >> $PINAX/cron_mail.log 2>&1)<br />0,20,40 * * * * (cd $PINAX; /usr/local/bin/python2.5 manage.py retry_deferred >> $PINAX/cron_mail_deferred.log 2>&1)<br /><br />This attempts to send mail every minute with a retry on failure every 20 minutes.<br /><br />manage.py send_mail uses a lock file in case clearing the queue takes longer than the interval between calling manage.py send_mail.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Admin Attempted Djangomailer Email Events Import Managepy Message Notification Queue Retry Deferred Send Mail Subscribed Subset Users
Users rating: 0/10

License: Freeware Size: 10.24 KB
DJANGO-MAILER RELATED
Web Browsers  -  Thunderbird Message Filter Import/Export 1.3.7.6
Thunderbird Message Filter Import/Export is a Thunderbird extension to import/export message filters. Developer comments Open Tools/Message Filters, Click Export Filters to export message filters for selected account.
30.72 KB  
E-Mail Tools  -  smtbang 0.1
smtbang is a small SMTP mailer program designed to send mail in chroot environments by sending email through a local smtpd host without a fully-installed server and keeping requirements at minimum. Its useful for building scripts in PHP and...
76.8 KB  
Productivity  -  Group Text Free -Send SMS,iMessage,Email Message In Batches Fast 1.8
This app make group message so easy! Group Manager: - Send Group SMS / iMessage. - Send Group Email. - Save your own Groups. Find By Common Field: - Find contacts with the same Birthday Date / Month. - Find contacts...
3.7 MB  
Mail Clients  -  Mozilla Thunderbird 31.4.0
Mozilla Thunderbird is a cross-platform email client that includes a news reader and a chat module, while it is also able to manage multiple email accounts with advanced message filtering. The installation process is easy-to-follow, it only...
5.76 MB  
Mail Clients  -  Thunderbird 8 8.0
Software made to make email easier. Thunderbird is a free email application that's easy to set up and customize - and it's loaded with great features! Get the award-winning email application from Mozilla. Import your existing mail and enjoy...
15 MB  
Java Based Databases  -  Instant Email Pop Up Generator 1.0
Opens Your Visitors Default Email Program With Your Message, Subject Line And Email Address Automatically Inserted Into All The Proper Fields.Now It's Ten Times Easier For Your Prospects To Subscribe Because All They Have To Do Is Press Send!...
1.03 MB  
Email  -  Vacation for Email System Utilities 3.3.0
This script allows you to return a message to the sender of a mail message telling that you are currently not reading your mail.
10 KB  
E-Commerce  -  Open Media Collectors Database for Catalogs 1.0.4pl2
The Open Media Collectors Database (OpenDb) is a PHP and MySQL based inventory application that allows you to easily catalog and lend out your stuff.Its primary purpose is to catalog media related items, such as DVD's, Books, CD's etc, but its so...
1.46 MB  
Networking  -  Email Chat Contact Button Sidebar 1.0.23
Add a contact button to your blog or website's sidebar. This widget allows your visitors to automatically stay in touch and communicate with you thru text messaging, email, phone, address, instant message, social networking sites like facebook,...
10 KB  
Utilities  -  QuickMail - Speed dial for email 1.1.2
QuickMail is speed dial for email. Add a recipient email address to create a super quick way to send email to that address: just launch the app, type or paste the message and send. Add more addresses to create a list of favourite recipient...
5.6 MB  
NEW DOWNLOADS IN E-MAIL TOOLS, MAILING LIST MANAGERS
E-Mail Tools  -  Email Signer and Validator 034b
This is an open-source implementation of Elegitimizer.com's 'elegitisigner' specification. An easily implemented validation mechanism to help eliminate illegitimate e-mail or Spam. Elegitisigner features a well documented web of trust model.
26.54 KB  
E-Mail Tools  -  Jwapmail 1.1
Jwapmail is opensource wap based email client written using PHP. Jwapmail has been tested at SonyEriccson T28, and Siemens SL45. Any volutenter of testers are welcome..
93.18 KB  
E-Mail Tools  -  KBPack 0.1
KBPack a package for installing pre-compiled utilities, libraries, services, etc. and extending some functionality on QNAP TS-101/TS-201. The application contains a Web UI to manage the services/functions (see below) supported by itself....
286.72 KB  
E-Mail Tools  -  Dwarf Mail Server 1.1.1
Dwarf Mail Server is a full-featured mail server developed on the Java platform, implementing SMTP, POP3 and IMAP4rev1 protocols. Dwarf Mail Server provides support for rich application message processing via pluggable mail filters and agents,...
931.84 KB  
E-Mail Tools  -  ldapvacation 1.1.1
ldapvacation returns a message to the sender of a message telling them that you are currently not reading your mail. SYNOPSIS ldapvacation [ -tVv ] [ -b searchbase ] [ -C configfile ] [ -D binddn ] [ -d dest ] [ -f from ] [ -h ldaphost ] [ -l...
20.48 KB  
Mailing List Managers  -  XToken a8
XToken is an application which helps users to control how their email address is used and thus counter unsolicited messages (i.e. SPAM). This is achieved by adding small pieces of information (tokens) and/or signatures to email messages.
3.85 MB  
Mailing List Managers  -  Spazio XSP Base 2.2.0
SPAZIO XSP Base is a simple and essential multiplatform file transfer that allows you to send and receive files between different systems using IBM WebSphere MQ message oriented middleware. It uses an open protocol with an XML header.
348.16 KB  
Mailing List Managers  -  AqBanking-CLI 1.1.11 / 4.99.0
AqBanking-CLI is a command-line tool for AqBanking. It has support for the HBCI protocol and optional support for the EBICS protocol (both are German homebanking protocols). About AqBanking AqBanking is a modular and generic...
3.44 MB  
Mailing List Managers  -  E-MailRelay for Linux 1.8.1
E-MailRelay is a simple SMTP proxy and store-and-forward message transfer agent (MTA). When running as a proxy all e-mail messages can be passed through a user-defined program, such as a spam filter, which can drop, re-address or edit messages as...
6.19 MB  
Mailing List Managers  -  Gmail Todo 1.0.1
Gmail Todo is another todo application that usesthe python libgmail to store all todo's in a todo label on gmail. This way your todo list is simple and alwaysavailable.
71.68 KB