wiki:BluePrint/Messaging

Version 25 (modified by Fran Boon, 15 years ago) ( diff )

Wiki link on HTML mail

Blueprint for the Messaging Module

Current design is here:

User Guide:

What we need is:

Email

tools.py has mail settings:

mail=MailS3()
# These settings should be made configurable as part of the Messaging Module
mail.settings.server='mail:25'
mail.sender='sahana@sahanapy.org'

& a function:

mail.send(to, subject='None', message='None')

Can use this to send emails with dynamic data inserted into templates (like HTML pages):

smtplib is required for sending HTML mails (MIME encoded):

There is a Cron job to check the contents of the OutBox & send pending messages. On Success it moves the message to the 'Sent' table:

SMS

The SMS Daemon to handle Inbound messages is a separate Python script.

It can distinguish between simple messages (added to the InBox of the Messaging Module) & those which are encoded in Binary XML (the output of XForms from the J2ME client).

Implementation details are here: http://wiki.sahana.lk/doku.php/dev:pythonsms

Q: Do we use Cron to check OutBox & signal the daemon to send Pending messages? (as for email)

Toolkits we can base on:

Hardware compatibility databases:

Twitter

Adding support for sending out/receiving alerts via Twitter would be nice. This is easy to do within base Web2Py, so this just needs a little UI work to integrate.


BluePrints

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.