moodletxt - SMS/Text Two-Way Messaging Module

Blocks ::: block_moodletxt
Maintained by In Paris, with a very large beer.Greg J Preece
moodletxt is a block that allows teachers and administrators to send SMS/text messages to their students directly from the Moodle system. The module supports both inbound and outbound messaging, text message status updates, user-personalised messages, message templates and signatures, personal addressbooks, and has full compatibility with user timezones. As of version 3, it also supports event-based messaging via the moodletxt+ message processor.

moodletxt - SMS/Text Two-Way Messaging Module 3.1.0

Moodle 2.5, 2.6, 2.7, 2.8, 2.9
Released: Friday, August 7, 2015, 12:38 AM

Author: Greg J Preece
Location: Vancouver, Canada
Company: Blackboard ConnectTxt
Author: Andrew J Kettle
Company: Blackboard Inc.
Location: Calgary, Canada
Version: 3.0.8
Release Date: 13th March 2015


moodletxt is a block that allows teachers and administrators to send SMS/text
messages to their students directly from the Moodle system. It is available
to all customers, and trial accounts can be
provided on request. The module supports both inbound and outbound messaging,
allowing teachers to text their students and receive replies without ever
leaving Moodle. It also supports text message status updates, user-personalised
messages, message templates and signatures, and more.


Installation is the same as any other block: simply drop the moodletxt folder
into your Moodle installation's /blocks directory, then log into Moodle as
an administrator and click the Notifications link on the Site Administration
menu. The automatic installation/upgrade scripts will do the rest.

When upgrading, it is recommended to remove the old moodletxt block completely
and replace it with a fresh copy from the new installer, before running the
upgrade script. All data is held within the database, so you will not lose
anything by doing this, and it helps prevent conflicts between versions.


If you are upgrading from Moodle 1.9 to 2.3 and beyond, then Moodle requires
that you first upgrade to Moodle 2.2, and then to 2.3 or above from there.
If you are planning such an upgrade, and this includes moodletxt, then you must
upgrade moodletxt to version 3 when you upgrade your Moodle installation to 2.2,
not after the upgrade to 2.3 or above. This is because Moodle's upgrade system
changed with Moodle 2.3, and as a result moodletxt cannot support direct
upgrades from Moodle 1.9 to 2.3 or above.


As well as the Moodle plugin repository, news and updates on the plugin can
be found on our website, at the following address:

An RSS feed is available at:

--NEW IN 3.0.8--

* Fixed issue with "Compose a Message" user interface "ballooning" in
Moodlerooms Snap Theme.

--NEW IN 3.0.7--

* Fixed issue on compose page where the signature checkbox always
removed text from a message.
* Fixed several minor rendering issues on compose page.
* Fixed several rendering issues on account listing page that may
occur on certain systems.
* In Moodle 2.5 and above, jQuery is now loaded via Moodle's new jQuery
loader mechanism. This helps prevent conflicts and removes the need
for this to be controlled manually by the administrator.
* Fixed incorrect title on inbound filter management page
* Fixed a bug in the account settings page where the user searcher
sometimes didn't show results.
* Fixed the "last name" tag for merging contact details into messages.

--NEW IN 3.0.6--

* Fixed issue when sending group messages to groups that contain
no valid phone numbers
* Fixed issue with inbound numbers where matches against addressbook
contacts would cause the message to not be saved.
* Modified status updates database queries in cron job to improve
performance on larger databases
* Fixed link-buttons on addressbook contacts list used to delete contacts
* Fixed minor issue on preferences page where form header did not
update when editing a template in Moodle 2.5 and above

--NEW IN 3.0.5--

* Fixed issue on compose page with groups not being displayed
in the recipient list.
* Modified inline contact editing to accept blank values for name fields.
* Updated output code for greater compatibility with Moodle 2.5
* Created additional validation for values passed to Moodletxt via AJAX handlers.
* Added code to prevent exceptions in Moodletxt's cron task affecting the rest
of a Moodle installation.
* Prefixed many pieces of code and CSS to prevent potential namespace collisions.
* Fixing minor issue on received messages page where a confirmation dialog
would appear twice.
* Fixed missing capability in Moodle 2.4 and above.
* Removed unused capability.

--NEW IN 3.0.4--

* Fixed error on accounts page where the number of accounts wasn't
correctly calculated in Moodle 2.4, which caused account updates to hang.
* Fixed bug that prevented lib.js from being cached in Moodle 2.4 and above.

--NEW IN 3.0.3--

* Compatibility with Moodle 2.4
* Fixed error on composition page that was causing scheduled messages to
be sent out immediately.
* Fixed data retrieval error that caused scheduled messages to show
an incorrect scheduling time on the message details page.

--NEW IN 3.0.2--

* Corrected permissions error on status page that prevented teachers viewing
the status of sent messages
* Modified the list of recipient users on the inbox page to include
users granted the :receivemessages permission at both system and current
course level.
* Updated CSS file to use dynamic include syntax for image URLs
* Removed accounts with disabled inbound access from the filter management

--NEW IN 3.0.1--

* Patch for running the block on MySQL 5.1 or higher.

--NEW IN 3.0 SINCE 2.4--

* Export functionality on all table-based listings (sent messages,
message status, message inbox, etc)
* Event-based messaging via the moodletxt+ message processor plugin
* Re-written user interface, to use standard Moodle components wherever
possible. Greater compatibility with themes.
* New tag-based inbox page, removing the old fashioned folder-based design.


moodletxt is distributed as GPLv3 software, and is provided free of charge without warranty.
A full copy of this licence can be found @
In addition to this licence, as described in section 7, we add the following terms:
- Derivative works must preserve original authorship attribution (@author tags and other such notices)
- Derivative works do not have permission to use the trade and service names
"ConnectTxt", "txttools", "moodletxt", "moodletxt+", "Blackboard", "Blackboard Connect" or "Cy-nap"
- Derivative works must be have their differences from the original material noted,
and must not be misrepresentative of the origin of this material, or of the original service

Anyone using, extending or modifying moodletxt indemnifies the original authors against any contractual
or legal liability arising from their use of this code.

Version information

Version build number
Version release name
Can be updated from
3.0 Final (2012103001), 3.0.1 (2012110501), 3.0.2 (2012112901), 3.0.3 (2013011001), 3.0.4 (2013032101), 3.0.5 (2013071001), 3.0.5 (2013071001), 3.0.5 (2013071001), 3.0.6, 3.0.6 (2013112901), 3.0.6 (2013112901), 3.0.6 (2013112901), 3.0.7 (2014071401), 3.0.7, 3.0.7, 3.0.7, 3.0.7 (2014071401), 3.0.7 (2014071401)
Stable version
MD5 Sum
Supported software
PHP 5.3, PHP 5.2, PHP 5.4, Moodle 2.5, Moodle 2.6, PHP 5.5, Moodle 2.7, PHP 5.6, Moodle 2.8, Moodle 2.9
  • Latest release for Moodle 2.5
  • Latest release for Moodle 2.6
  • Latest release for Moodle 2.7
  • Latest release for Moodle 2.8
  • Latest release for Moodle 2.9

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.