Technological advances in information and communications systems are enabling access to education for millions of students, regardless of their geographical location. In this sense, distance learning schools take advantage of technological tools, such as course management systems (CMS) and their plugins. This work proposes a plugin for the e-learning platform Moodle that automatically sends e-mail messages to the students in order to motivate them to take part in the distance learning courses and, consequently, to reduce the dropout rates. This plugin has been tested in courses promoted by the General Coordination of Distance Education (CGEAD) of the Brazilian National School of Public Administration (ENAP). Based on data from its operation within the real ENAP distance learning environment, the proposed plugin is particularly successful to tackle the enrollment locking cases that compose the student dropout rate and also to motivate course enrolled students to access the virtual learning system more frequently