Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<img src="pix/logo.png" align="right" />
2
 
3
Local eMailTest plugin for Moodle
4
=================================
5
![PHP](https://img.shields.io/badge/PHP-v5.6%20to%208.3-blue.svg)
6
![Moodle](https://img.shields.io/badge/Moodle-v2.5%20to%20v4.4-orange.svg)
7
[![GitHub Issues](https://img.shields.io/github/issues/michael-milette/moodle-local_mailtest.svg)](https://github.com/michael-milette/moodle-local_mailtest/issues)
8
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-green.svg)](#contributing)
9
[![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](#license)
10
 
11
# Table of Contents
12
 
13
- [Basic Overview](#basic-overview)
14
- [Requirements](#requirements)
15
- [Download eMail Test for Moodle](#download-email-test-for-moodle)
16
- [Installation](#installation)
17
- [Usage](#usage)
18
- [Updating](#updating)
19
- [Uninstallation](#uninstallation)
20
- [Limitations](#limitations)
21
- [Language Support](#language-support)
22
- [Frequently Asked Questions (FAQ)](#faq)
23
- [Contributing](#contributing)
24
- [Motivation for this plugin](#motivation-for-this-plugin)
25
- [Further information](#further-information)
26
- [License](#license)
27
 
28
# Basic Overview
29
 
30
The eMailTest module for Moodle allows administrators to test Moodle's email system. A trace of the SMTP dialogue will be displayed if the email message cannot be sent for any reason.
31
 
32
Once the test email has been sent, you will need to check your email in-box to confirm that the email message was successfully delivered. This plugin will not do that for you.
33
 
34
[(Back to top)](#table-of-contents)
35
 
36
# Requirements
37
 
38
This plugin requires Moodle 2.5+, 3.x+ or 4.x+ from https://moodle.org
39
 
40
[(Back to top)](#table-of-contents)
41
 
42
# Download eMail Test for Moodle
43
 
44
The most recent STABLE release of eMail Test for Moodle is available from:
45
https://moodle.org/plugins/local_mailtest
46
 
47
The most development release can be found at:
48
https://github.com/michael-milette/moodle-local_mailtest
49
 
50
[(Back to top)](#table-of-contents)
51
 
52
# Installation
53
 
54
Install the plugin, like any other plugin, to the following folder:
55
 
56
    /local/mailtest
57
 
58
See https://docs.moodle.org/en/Installing_plugins for details on installing Moodle plugins.
59
 
60
There are no special considerations required for updating the plugin.
61
 
62
[(Back to top)](#table-of-contents)
63
 
64
# Usage
65
 
66
There are no configurable settings for this plugin at this time.
67
 
68
The local_mailtest plugin is designed allow administrators to test Moodle to ensure the email message system is correctly configured.
69
 
70
Once installed, login as a Moodle administrator and then click:
71
 
72
    Home > Site Administration > Server > eMail Test
73
 
74
Enter the email address of the recipient where you want to send the message and click the [Send a test message] button.
75
 
76
If the email message was successfully sent by Moodle, you will see a message that says "Success - The test message was successfully delivered to the SMTP server.". If it fails to send the email, a dialogue between the Moodle and the SMTP server will be displayed.
77
 
78
[(Back to top)](#table-of-contents)
79
 
80
# Updating
81
 
82
There are no special considerations required for updating the plugin.
83
 
84
The first public BETA version was released on 2015-11-01. This plugin is now considered STABLE.
85
 
86
For more information on releases since then, see
87
[CHANGELOG.md](https://github.com/michael-milette/moodle-local_mailtest/blob/master/CHANGELOG.md).
88
 
89
[(Back to top)](#table-of-contents)
90
 
91
# Uninstallation
92
 
93
Uninstalling the plugin by going into the following:
94
 
95
Home > Administration > Site Administration > Plugins > Manage plugins > eMail Test
96
 
97
...and click Uninstall. You may also need to manually delete the following folder:
98
 
99
    /local/mailtest
100
 
101
[(Back to top)](#table-of-contents)
102
 
103
# Limitations
104
 
105
There are no known limitations at this time.
106
 
107
[(Back to top)](#table-of-contents)
108
 
109
# Language Support
110
 
111
This plugin includes support for the English language. Additional languages including French are supported if you've installed one or more additional Moodle language packs.
112
 
113
If you need a different language that is not yet supported, please feel free to contribute using the Moodle AMOS Translation Toolkit for Moodle at https://lang.moodle.org/
114
 
115
This plugin has not been tested for right-to-left (RTL) language support. If you want to use this plugin with a RTL language and it doesn't work as-is, feel free to prepare a pull request and submit it to the project page at:
116
 
117
https://github.com/michael-milette/moodle-local_mailtest
118
 
119
[(Back to top)](#table-of-contents)
120
 
121
# FAQ
122
 
123
## Frequently Asked Questions
124
 
125
### Why do I get a 500 server error when I use eMailTest?
126
 
127
This plugin has been extensively tested and used on hundreds of sites. If you are getting this error, it is likely that you have a file owner/group permissions issue on your server which needs to be resolved.
128
 
129
### Why does it say that Moodle sent the test message successfully yet I did not receive the email?
130
 
131
This could be due to a number of reasons including but not limited to:
132
 
133
* Incorrect PHP Mail settings in your php.ini file (if you have not configured Moodle's SMTP settings).
134
* You may have an anti-virus or firewall blocking email communications.
135
* The mail server receiving your email may be discarding emails received from your site.
136
* The test email may be blocked by anti-spam filters. Check your junk mail folder.
137
 
138
### How do I find out the correct email settings I should be using?
139
 
140
Contact your network administrator or your web hosting provider. These are typically the same settings as you would use for an email client but the administrator may need to add special settings to allow emails to be sent from your `support` and `no-reply` email addresses.
141
 
142
### Why is the test emails not being sent successfully?
143
 
144
Your SMTP email settings are incorrect or the mail server is refusing emails coming from your Moodle site. Read the whole communications dialogue that is displayed when you send a test message. It will often provide some hint of where the problem might be.
145
 
146
### What is the difference between PHP Mail and Moodle SMTP Mail?
147
 
148
If you don't configure the mail settings in Moodle, Moodle will hand off the delivery of email to PHP's built-in mail system. Its settings are typically in your server's PHP.INI file. If you do configure the SMTP settings in Moodle, it will attempt to deliver emails directly to the local SMTP server.
149
 
150
### How can I use this tool to send emails from other email addresses?
151
 
152
You can't. This is to prevent the tool from being used to send spam. If you really must, you can temporarily test the email address of one of the following "From" addresses:
153
 
154
* Your user account
155
* Support
156
* No-reply
157
* Primary admin
158
 
159
### My email used to work in Moodle previous to 3.2. After upgrading to Moodle 3.2 or later, why can't my site send emails?
160
 
161
As of Moodle 3.2, use of the no-reply email address is no longer optional in many cases. You will need to make sure it is now configured correctly. Some mail server may even only permit connections if this is actually a valid email address.
162
 
163
### Why do I see a message about cron not having run for at least 24 hours?
164
 
165
IMPORTANT - See https://docs.moodle.org/en/Cron . If a link is included within the message, clicking it will cause Moodle to try sending queued messages immediately. However, future message will still not be sent automatically. Clicking the link instead of configuring cron will just hide the notice for 24 hours after which it will return until you fix this issue.
166
 
167
If for some reason you are unable to setup an automated cron job and don't see the link, you can enable the link and allow remote running of the cron job by going to Site administration >Security > Site Policies and unchecking **Cron execution via command line only**. For a little extra security, also set a **Cron password for remote access**.
168
 
169
### Why do I see some debugging code in the communications log even though debugging is turned off?
170
 
171
Moodle does some validation before sending an email and can display some useful information so we've enabled some minimal display of debugging information. Informative lines start with **email_to_user**. You can ignore the line number references that follow the information line.
172
 
173
### Regardless of which "from" email address I use, the test email always arrives from the same email address. Why?
174
 
175
This is likely a setting in your mail server. To confirm which email address was used to send the email, look at the bottom of the status message after you try to send the email. If the test email was successfully delivered, you can also try to reply to the test message and take a look at the To email address. There is no need to actually send the reply.
176
 
177
### I am not sure if the problem is with Moodle, my mail server or my firewall. What should I do?
178
 
179
First, the problem is very unlikely to be Moodle. Moodle is used by organization in virtually every country of the world. If there was a problem, someone would have spoken up by now. That said, it could be your email settings. To find out if it is potentially your Moodle settings or firewall, or if it is you mail server, try setting Moodle up to use Gmail as your email server. If it works, it is very likely your email settings. If it doesn't, you might have a firewall blocking email traffic or your email server is incorrectly configured.
180
 
181
### How can I use Gmail to send SMTP emails from Moodle?
182
 
183
Gmail requires that you create an [App Password](https://support.google.com/mail/answer/185833?hl=en) to send email for Moodle.
184
 
185
For more details as well as some of the limitations, see the Moodle documentation on [Email Setup Gmail](https://docs.moodle.org/en/Email_setup_gmail).-
186
 
187
### All the settings seem to be correct. What else can I try?
188
 
189
Despite your best efforts, sometimes you will find that a :port Number needs to be added after the address of the SMTP server. Example: smtp.example.com:587
190
 
191
### Are there any security considerations?
192
 
193
Use of this plugin is restricted to Moodle Site Administrators and allows them to submit an email through a restricted web form that only they can access.
194
 
195
## Other questions
196
 
197
Got a burning question that is not covered here? If you still can't find your answer, submit your question in the Moodle forums or open a new issue on Github at:
198
 
199
https://github.com/michael-milette/moodle-local_mailtest/issues
200
 
201
[(Back to top)](#table-of-contents)
202
 
203
# Contributing
204
 
205
If you are interested in helping, please take a look at our [contributing](https://github.com/michael-milette/moodle-local_mailtest/blob/master/CONTRIBUTING.md) guidelines for details on our code of conduct and the process for submitting pull requests to us.
206
 
207
## Contributors
208
 
209
Michael Milette - Author and Lead Developer
210
 
211
## Pending Features
212
 
213
Let us know if you have any suggestions.
214
 
215
[(Back to top)](#table-of-contents)
216
 
217
# Motivation for this plugin
218
 
219
The development of this plugin was motivated through our own experience in Moodle development and comments in the Moodle support forums and is supported by TNG Consulting Inc.
220
 
221
[(Back to top)](#table-of-contents)
222
 
223
# Further information
224
 
225
For further information regarding the local_mailtest plugin, support or to report a bug, please visit the project page at:
226
 
227
https://github.com/michael-milette/moodle-local_mailtest
228
 
229
[(Back to top)](#table-of-contents)
230
 
231
# License
232
 
233
Copyright © 2015-2024 TNG Consulting Inc. - https://www.tngconsulting.ca/
234
 
235
This file is part of MailTest/eMailTest for Moodle - https://moodle.org/
236
 
237
eMailTest is free software: you can redistribute it and/or modify
238
it under the terms of the GNU General Public License as published by
239
the Free Software Foundation, either version 3 of the License, or
240
(at your option) any later version.
241
 
242
eMailTest is distributed in the hope that it will be useful,
243
but WITHOUT ANY WARRANTY; without even the implied warranty of
244
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
245
GNU General Public License for more details.
246
 
247
You should have received a copy of the GNU General Public License
248
along with eMailTest.  If not, see <https://www.gnu.org/licenses/>.
249
 
250
[(Back to top)](#table-of-contents)