Emailed Files

Repositories ::: repository_emailed_files
Maintained by Robert Schrenk
Create a Mailbox for your Moodle Instance (e.g. / Users can send mails to this mail-Address and import email-attachments from their mails as files.
Latest release:
12 sites
6 fans

The main advantage of using the email repository is that you can use nearly every mailbox that provides access via imap, which is rather easy. Any user can send an email to this address e.g. or As long as the senders mail-address is the same as the mail-address of the moodle-user the user can import the attachment into moodle.

On the configuration page of the moodle plugin there is a parameter to specify after how many days old emails should be deleted.

The e-Mail Repository Plugin is distributed under GPL 3 on github ->


Screenshot #0


Robert Schrenk (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Thu, Dec 18, 2014, 7:11 PM
    I installed and configured the plugin but every time I click on the repository to select a file I get a message box "SyntaxError: Unexpected end of input". This is with chrome browser. With Firefox the error text is "JSON.parse: unexpected end of data at line 1 column 1 of the JSON data".
    JavaScript log outputs an internal server error (500) during POST http://testserver.local/moodle/repository/repository_ajax.php?action=list

    In addition some lang strings and the icon is missing. Any ideas about what the problem is?
    I'm using latest stable moodle 2.7 version.
  • Fri, Dec 19, 2014, 6:16 PM
    Hi, I found a bug that caused an issue when reading the contents of a mailbox. This should be fixed by now. If you still can not see your attachments please try different email clients. I tested Thunderbird, Google Mail (Web) and MacOS Mail. It worked with MacOS Mail as well as Google Mail, but not worked with Thunderbird. I will have to go into detail how Thunderbird structures the eMails but this may take a while. Hope the new version works for you now. Kind regards, Robert
  • Mon, Dec 22, 2014, 7:55 PM
    An error popup now says "Unexpected token <".
    I also checked my mailserver log and couldn't found a login attempt.
  • Wed, Dec 31, 2014, 8:12 AM

    I was working hard on this plugin in the last days. May you please try my latest version from github?

    The new version handles different mail structures better caused by different email composers. It works fine on my development machine using gmail via imap. Please ensure that you have set the correct parameters in your moodle administration (Website-Administration > Plugins > Repositories > My emailed files).

    My GMail-Configuration:
    Port: 993
    Default Mailbox: (leave empty)
    Mailbox Username: email-address
    Mailbox Passwort: password
    Use SSL: yes
    Check certificate: no
    Delete eMails automatically: 1 (after 1 day)

    Hope this helps. I would appreciate knowing my plugin works for you!
Please login to post comments