-
Functional Test
-
Minor
-
Moodle 3.10
Test Pre-Requisites
- An otherwise unused e-mail account which supports:
- IMAP
- Sub-Addresses
- Working SMTP configuration for Moodle
- A standard user account
- Access to run cron
Test setup
- Login as administrator
- Open Site administration -> Server -> Incoming mail configuration
- Place a tick beside "Enable incoming mail processing"
- Enter your mailbox configuration:
- Mailbox name: The bit before the @ on the e-mail address you would use to send e-mail to. For example, jammydodger in jammydodger@example.com
- Email domain: The bit after the @ on the e-mail address you would use to send e-mail to. For example, example.com in jammydodger@example.com
- Enter your Incoming mail server settings
- Incoming Mail Server: The IMAP server name
- Use SSL: Server-dependent
- Username: The username required to log on to this IMAP server
- Password: The password required to log on to this IMAP server
- Click Save changes
- Open Site administration -> Server -> Incoming mail configuration -> Message handlers
- Click the Edit icon beside "Email to Private files"
- Place a tick beside "Enabled"
- Ensure that "Validate sender address" is disabled
- Click Save changes
Test procedure
- Login as a student
- Navigate to your Dashboard
- Under the "Private files" block,choose "Manage private files..."
- Confirm that there is an e-mail address underneath the file manager
- Create a new e-mail:
- Set the address found underneath the file manager address as the recipient
- Add one or more small attachments
- Send the email
- Run Cron
- Confirm that the output does not list any errors and that the e-mail was processed
- Refresh your "Private files" page
- *Confirm that your files in your e-mail were added to your Private files"