<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/310/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ianmcn</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/310/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ianmcn"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/Special:Contributions/Ianmcn"/>
	<updated>2026-10-08T05:57:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Metacourse&amp;diff=90018</id>
		<title>Metacourse</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Metacourse&amp;diff=90018"/>
		<updated>2011-09-21T10:47:54Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: /* Creating a meta course */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Metacourse}}&lt;br /&gt;
==What is a metacourse?==&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;meta course&#039;&#039;&#039; is a course that is &amp;quot;with&amp;quot; or linked to one or more courses for its student [[Enrolment|enrolment]] (enrollment to some). Adding or subtracting participants in a metacourse can only be done from the courses it is linked to. The linked courses push enrolment information to the metacourse(s) every time [[Cron|cron]] is run. There are [[Metacourse examples of use|many uses for a metacourse]].&lt;br /&gt;
&lt;br /&gt;
The course meta link option must be turned on by the site adminstrator.&lt;br /&gt;
&#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins &amp;gt; Course meta link&#039;&#039;.  The standard package default is to hide this feature.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Concept note:&#039;&#039; When using a meta course, Moodle calls the courses it is linked to &#039;&#039;&#039;child&#039;&#039;&#039; courses. Some people like to think of them as parent courses.  In any case a meta course has a kinship with one or more non-meta courses when it comes to enrolment.&lt;br /&gt;
&lt;br /&gt;
In the simplest form, a linked course only needs to contain just the Students who are to be enrolled in a meta course. There do not need to be resources,  assignments,  or wikis, etc., just the Students in the linked course.  In the simplest form, a meta course &#039;&#039;&#039;cannot&#039;&#039;&#039; enroll Students, but will have resources and activities for students in the linked courses. &lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
![[Image:simplemetacourse0.png|thumb|left|200px|Created - a child course and a meta course.]] &lt;br /&gt;
![[Image:simplemetacourse1.png|thumb|left|200px|Associating one child course and one meta course.]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Examples: one &amp;quot;child&amp;quot; course (a course linked to a meta course) can be associated with many meta courses. Or one meta course can have many child courses associated with it. Both the child courses (non-meta courses) and the meta courses are independent and can be recycled many times, that is, each can be associated with many of the other. However, a course can only be one type or the other and meta courses cannot be linked directly with other meta courses.&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
![[Image:simplemetacourse2.png|thumb|left|200px|2 child courses and a meta course.]] &lt;br /&gt;
![[Image:simplemetacourse3.png|thumb|left|200px|1 child course and 2 meta courses.]]&lt;br /&gt;
![[Image:simplemetacourse4a.png|thumb|left|200px|3 child courses and 2 meta courses.]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Creating a meta course==&lt;br /&gt;
For information on how to create a metacourse, see [[https://docs.moodle.org/20/en/admin/setting/enrolsettingsmeta Course meta link plugin]] and see this screencast [[http://www.youtube.com/watch?v=hA5QcTb13no&amp;amp;feature=player_embedded]]&lt;br /&gt;
&lt;br /&gt;
==Tips and Tricks==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Example Procedure for Experimenting with Metacourses ===&lt;br /&gt;
In this example, there are 2 sections of students in the &amp;quot;Parent&amp;quot; course: &amp;quot;Section 001&amp;quot; and &amp;quot;Section 002&amp;quot;.  Students are enrolled in the section courses.&lt;br /&gt;
&lt;br /&gt;
# Turn Metacourses on by going to Site administration -&amp;gt; Plugins -&amp;gt; Enrolments -&amp;gt; Manage enrol plugins and enabled Course meta link.&lt;br /&gt;
# Created the following courses:&lt;br /&gt;
## Parent&lt;br /&gt;
## Section 001&lt;br /&gt;
## Section 002&lt;br /&gt;
# Enroll users into Section 001 and Section 002. Leave Parent enrollment empty.&lt;br /&gt;
# Go to Parent course. Go to Settings -&amp;gt; Course admin -&amp;gt; Users -&amp;gt; Enrolment methods. On that screen, add method &amp;quot;Course Meta link&amp;quot; and choose Section 001. Repeat steps for Section 002. If you look at participants for the parent course, you will see the users from Section 001 and 002.&lt;br /&gt;
# If you log-in as a student from section 001, you will see section 001 and parent in your course listings. If you want only students to see the parent course, then go to:&lt;br /&gt;
## Site Administration -&amp;gt; Courses -&amp;gt; Add/edit courses. Choose the category for the section 001 course. Find the course section 001. Click the eye icon to hide the course.&lt;br /&gt;
## &#039;&#039;&#039;OR&#039;&#039;&#039; search for the course from the home page logged in as site admin. Click the eye icon to hide the appropriate courses.&lt;br /&gt;
# Repeat above for section 002. If you log in as a student, you can&#039;t see/search for section 001. However, an admin can still see/search for these now hidden child courses. The will be grayed out to indicate that they are hidden.&lt;br /&gt;
&lt;br /&gt;
===Draw a map of your courses===&lt;br /&gt;
Get an oversized piece of paper (A3 or 11&amp;quot;x17&#039;), draw boxes for courses and give them names. Add lines to connect the boxes to show relationships. Label the meta courses (alternatively, color the meta course boxes). Add arrows to the lines so you will know where enrolments come from.   This is a great tip from the Business Uses forum.&lt;br /&gt;
&lt;br /&gt;
===Groups do not transfer===&lt;br /&gt;
Meta course enrolments do not transfer groups from the and enrolment does not happen immediately, but occurs next time the [[Cron|cronjob]] runs.&lt;br /&gt;
&lt;br /&gt;
===Transfer of roles===&lt;br /&gt;
By default all role assignments from child courses are synchronised to meta courses. However, the &amp;quot;Roles that are not synchronised to metacourses&amp;quot; setting in &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins &amp;gt; Course meta link &amp;gt; Settings&#039;&#039; enables administrators to exclude particular roles.&lt;br /&gt;
&lt;br /&gt;
===Restoring a meta course=== &lt;br /&gt;
When restoring a meta course with the option &amp;quot;deleting the course first&amp;quot;, you will notice that the enrolments that were used by the course previously are now gone.  In order to re-link the course, navigate to the new course and select the link &amp;quot;Child Courses&amp;quot; from the &amp;quot;Administration&amp;quot; block on the main course page and re-link the course to its parent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Metacourse examples of use]] -  Why use a metacourse? here are many examples&lt;br /&gt;
*[[Related courses block]] - contributed code that shows meta or child course relationships&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=48901 Metacourses?]  Forum discussion&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=39438 Best reference for describing a metacourse] Forum discussion&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=89741 Assign student in course] Forum discussion&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=156900#p686857 Confusion over meta-courses] Forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Course]]&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Enrolment]]&lt;br /&gt;
&lt;br /&gt;
[[cs:Metakurzy]]&lt;br /&gt;
[[de:Metakurs]]&lt;br /&gt;
[[es:Metacourses]]&lt;br /&gt;
[[fr:Méta-cours]]&lt;br /&gt;
[[ja:メタコース]]&lt;br /&gt;
[[ru:Метакурсы]]&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=YouTube_videos_repository&amp;diff=89766</id>
		<title>YouTube videos repository</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=YouTube_videos_repository&amp;diff=89766"/>
		<updated>2011-09-18T09:51:22Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: /* Searching for and embedding a video from Youtube */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Repositories}}&lt;br /&gt;
The Youtube repository allows users to search from within the HTML/TinyMCE editor for a youtube video which they can then embed without the need for any coding.  The option needs to be enabled  by the administrator before it is available for teachers and students.&lt;br /&gt;
==Enabling the Youtube repository==&lt;br /&gt;
&lt;br /&gt;
*Go to Site Administration&amp;gt;Plugins&amp;gt;Repositories&amp;gt;Manage Repositories;&lt;br /&gt;
*Select from the drop down next to Youtube &amp;quot;Enabled and visible&amp;quot;;&lt;br /&gt;
*If desired,click on &amp;quot;Settings&amp;quot; and give Youtube a customised name (not essential) &lt;br /&gt;
&lt;br /&gt;
[[File:Youtuberepo.png]]&lt;br /&gt;
&lt;br /&gt;
==Searching for and embedding a video from Youtube==&lt;br /&gt;
Youtube videos can be searched for and embedded anywhere there is the HTML/TinyMCE editor, for example a label or a page. Before this works, you must enable the multimedia filters under Administration/Plugins/Filters/Manage Filters. Set Multimedia Plugins to &amp;quot;On&amp;quot; and make sure youtube is selected under Settings (it should be by default).&lt;br /&gt;
*Click the filmstrip, &amp;quot;Moodle media icon&amp;quot; in the editor:&lt;br /&gt;
&lt;br /&gt;
[[File:Moodlemediaicon.png]]&lt;br /&gt;
&lt;br /&gt;
*Click &amp;quot;Find or upload a sound, video or applet&amp;quot;&lt;br /&gt;
*The file picker will appear with Youtube videos as an option. Click it and a search box will appear:&lt;br /&gt;
 &lt;br /&gt;
[[File:Searchyoutube.png]]&lt;br /&gt;
&lt;br /&gt;
*Type in your search terms. Videos on that topic will appear. Click the one you want to use and it will appear enlarged.&lt;br /&gt;
*Rename if desired; add the author and license if needed and click &amp;quot;Select&amp;quot;&lt;br /&gt;
*The video will be previewed in the next screen.&lt;br /&gt;
&lt;br /&gt;
[[File:Pinnacleridge2.png]]&lt;br /&gt;
&lt;br /&gt;
*Click &amp;quot;Insert&amp;quot;&lt;br /&gt;
*&#039;&#039;DO NOT WORRY IF YOUR VIDEO NO LONGER SHOWS&#039;&#039;! You will just get a blue text link until you save. Then it will display. If it still displays as a text link after saving, make sure you have enabled the Multimedia filter as instructed at the top of this page.&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
===The youtube repository is enabled but I still can&#039;t see the youtube option in the file picker===&lt;br /&gt;
*Are you sure you are working with the text (TinyMCE) editor? The youtube option allows you to search for and embed youtube videos into the editor in places such as labels or pages. You won&#039;t see it simply by clicking the &amp;quot;add&amp;quot; button when uploading a file, for example.&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=YouTube_videos_repository&amp;diff=89765</id>
		<title>YouTube videos repository</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=YouTube_videos_repository&amp;diff=89765"/>
		<updated>2011-09-18T09:50:12Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: /* Searching for and embedding a video from Youtube */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Repositories}}&lt;br /&gt;
The Youtube repository allows users to search from within the HTML/TinyMCE editor for a youtube video which they can then embed without the need for any coding.  The option needs to be enabled  by the administrator before it is available for teachers and students.&lt;br /&gt;
==Enabling the Youtube repository==&lt;br /&gt;
&lt;br /&gt;
*Go to Site Administration&amp;gt;Plugins&amp;gt;Repositories&amp;gt;Manage Repositories;&lt;br /&gt;
*Select from the drop down next to Youtube &amp;quot;Enabled and visible&amp;quot;;&lt;br /&gt;
*If desired,click on &amp;quot;Settings&amp;quot; and give Youtube a customised name (not essential) &lt;br /&gt;
&lt;br /&gt;
[[File:Youtuberepo.png]]&lt;br /&gt;
&lt;br /&gt;
==Searching for and embedding a video from Youtube==&lt;br /&gt;
Youtube videos can be searched for and embedded anywhere there is the HTML/TinyMCE editor, for example a label or a page. Before this works, you must enable the multimedia filters under Administration/Plugins/Filters/Manage Filters. Set Multimedia Plugins to &amp;quot;On&amp;quot; and make sure youtube is selected under Settings (it should be by default).&lt;br /&gt;
*Click the filmstrip, &amp;quot;Moodle media icon&amp;quot; in the editor:&lt;br /&gt;
&lt;br /&gt;
[[File:Moodlemediaicon.png]]&lt;br /&gt;
&lt;br /&gt;
*Click &amp;quot;Find or upload a sound, video or applet&amp;quot;&lt;br /&gt;
*The file picker will appear with Youtube videos as an option. Click it and a search box will appear:&lt;br /&gt;
 &lt;br /&gt;
[[File:Searchyoutube.png]]&lt;br /&gt;
&lt;br /&gt;
*Type in your search terms. Videos on that topic will appear. Click the one you want to use and it will appear enlarged.&lt;br /&gt;
*Rename if desired; add the author and license if needed and click &amp;quot;Select&amp;quot;&lt;br /&gt;
*The video will be previewed in the next screen.&lt;br /&gt;
&lt;br /&gt;
[[File:Pinnacleridge2.png]]&lt;br /&gt;
&lt;br /&gt;
*Click &amp;quot;Insert&amp;quot;&lt;br /&gt;
*&#039;&#039;DO NOT WORRY IF YOUR VIDEO NO LONGER SHOWS&#039;&#039;! You will just get a blue text link until you save. Then it will display :)&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
===The youtube repository is enabled but I still can&#039;t see the youtube option in the file picker===&lt;br /&gt;
*Are you sure you are working with the text (TinyMCE) editor? The youtube option allows you to search for and embed youtube videos into the editor in places such as labels or pages. You won&#039;t see it simply by clicking the &amp;quot;add&amp;quot; button when uploading a file, for example.&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=error/moodle/nostatstodisplay&amp;diff=89493</id>
		<title>error/moodle/nostatstodisplay</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=error/moodle/nostatstodisplay&amp;diff=89493"/>
		<updated>2011-09-13T13:19:32Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Stats&lt;br /&gt;
&lt;br /&gt;
This page can appear if you have not enabled statistics. To enable statistics, log into your Moodle as an administrator. Then, in the Site Administration menu, under Advanced Features ensure that they are enabled.&lt;br /&gt;
&lt;br /&gt;
If you have enabled Statistics recently you should note that statistics are collected by a background task and take some time to become available. Try again later, but do note the time for statistics job to be run in the Site Administration page noted above.&lt;br /&gt;
&lt;br /&gt;
[[fr:error/moodle/nostatstodisplay]]&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Email_setup_gmail&amp;diff=85192</id>
		<title>Email setup gmail</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Email_setup_gmail&amp;diff=85192"/>
		<updated>2011-06-14T07:23:56Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Google&#039;s mail servers can be set up as the SMTP server for Moodle, although in many cases may not be suitable for a production system (see first heading below).&lt;br /&gt;
&lt;br /&gt;
Setting it up will require a hack to the code.&lt;br /&gt;
&lt;br /&gt;
== Is Google mail suitable for your requirements? ==&lt;br /&gt;
Google mail has a couple of limitations which make it unsuitable for many Moodle installs, please check the following two points before continuing.&lt;br /&gt;
# &#039;&#039;&#039;No support for multiple &amp;quot;From&amp;quot; addresses.&#039;&#039;&#039; When sending emails, Moodle attempts to send them &amp;quot;From&amp;quot; the email address of the user writing the message, this allows the recipient to reply directly to the sender via email. Google, both in their Gmail and Apps for Education product do not allow this - so any emails sent from the system will be from the account you use to authenticate on the SMTP server. To make things more confusing, the name will be the recipients, but the email address will be the SMTP account&#039;s email address, for example: &amp;quot;Dr Fred Bloggs&amp;quot; &amp;lt;moodlemail@mycollege.edu&amp;gt;. If you wanted to use Gmail&#039;s SMTP regardless, you would be advised to use a dedicated account for the purpose, and have an auto response so that messages to the address bounce back with an instruction to click on the link in the email and reply through Moodle.&lt;br /&gt;
# &#039;&#039;&#039;Daily limit of 500 sent messages.&#039;&#039;&#039; There is a daily limit on any one google account of [http://googlesystem.blogspot.com/2008/06/gmails-limitations-for-sending-messages.html 500 individual email messages, or 2000 recipients across all emails]. Your account can get blocked if you go over this on a regular basis. If you have more than 500 users, it will only take one message to the front page news forum to exceed this quota. &lt;br /&gt;
&lt;br /&gt;
== [[Email settings]] ==&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Email settings|Email]]&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP hosts:&#039;&#039;&#039; smtp.gmail.com:465   &#039;&#039;NOTE: Leave out the port (:465) in 1.9.2 or lower&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP username:&#039;&#039;&#039; Your email address @gmail.com or your own domain if using Google Apps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP password:&#039;&#039;&#039; password for the above email account&lt;br /&gt;
&lt;br /&gt;
== Code Modification ==&lt;br /&gt;
In your Moodle site go to &amp;lt;tt&amp;gt;/lib/phpmailer/&amp;lt;/tt&amp;gt; and modify the following file:&lt;br /&gt;
&lt;br /&gt;
=== class.smtp.php ===&lt;br /&gt;
Around line 83 DIRECTLY after the &#039;&#039;&#039;Connect&#039;&#039;&#039; function header, insert this line immediately after the &amp;quot;{&amp;quot; :&lt;br /&gt;
 $host = &#039;ssl://&#039; . $host;&lt;br /&gt;
&lt;br /&gt;
== Code Modification (1.9.2 or lower) == &lt;br /&gt;
These two additional modifications need to be made in 1.9.2 or lower as the &#039;&#039;&#039;SMTP hosts&#039;&#039;&#039; setting above will not allow the port to be included.&lt;br /&gt;
&lt;br /&gt;
=== class.phpmailer.php ===&lt;br /&gt;
around line 162 &lt;br /&gt;
*Change &amp;lt;tt&amp;gt;var $Port = 25;&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;var $Port = 465;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== class.smtp.php ===&lt;br /&gt;
around line 30&lt;br /&gt;
*Change &amp;lt;tt&amp;gt;var $SMTP_PORT = 25;&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;var $SMTP_PORT = 465;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tips and tricks ==&lt;br /&gt;
&lt;br /&gt;
* Some sites may need the additional step of un-commenting the &#039;&#039;&#039;php_openssl.dll&#039;&#039;&#039; extension in &amp;lt;tt&amp;gt;php.ini&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Google education edition with 1.9.9===&lt;br /&gt;
When using Google Education Edition with 1.99&lt;br /&gt;
&lt;br /&gt;
The latest php mailer is paramont. If someschool.edu email at google is not accepting mails from the moodle as valid mails you need to create an SPF record at your host, allowing mail from the Central Mail server, Google and the local server which satisified Google&#039;s validation desires.&lt;br /&gt;
&lt;br /&gt;
@ 14400 IN TXT &amp;quot;v=spf1 ip4:174.121.161.XXX&lt;br /&gt;
include:aspmx.googlemail.com mx:c1.hostname.com ~all&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This bit is server side more than moodle so if you are on managed or shared hosting the server admin will have to do the record (try submitting a request to have the record added with full details of how and why to do so) then follow the previous the directions in this record.&lt;br /&gt;
&lt;br /&gt;
== See also==&lt;br /&gt;
[[Email settings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ja:GmailでのEメール設定]]&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Email_setup_gmail&amp;diff=85191</id>
		<title>Email setup gmail</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Email_setup_gmail&amp;diff=85191"/>
		<updated>2011-06-14T07:22:04Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Google&#039;s mail servers can be set up as the SMTP server for Moodle.  This reduces or eliminates the need for an email service on a server and is especially useful if [http://www.google.com/apps/ Google Apps] is used by the institution using Moodle.  &lt;br /&gt;
&lt;br /&gt;
This will require a hack to the code.&lt;br /&gt;
&lt;br /&gt;
== Is Google mail suitable for your requirements? ==&lt;br /&gt;
Google mail has a couple of limitations which make it unsuitable for many Moodle installs, please check the following two points before continuing.&lt;br /&gt;
# &#039;&#039;&#039;No support for multiple &amp;quot;From&amp;quot; addresses.&#039;&#039;&#039; When sending emails, Moodle attempts to send them &amp;quot;From&amp;quot; the email address of the user writing the message, this allows the recipient to reply directly to the sender via email. Google, both in their Gmail and Apps for Education product do not allow this - so any emails sent from the system will be from the account you use to authenticate on the SMTP server. To make things more confusing, the name will be the recipients, but the email address will be the SMTP account&#039;s email address, for example: &amp;quot;Dr Fred Bloggs&amp;quot; &amp;lt;moodlemail@mycollege.edu&amp;gt;. If you wanted to use Gmail&#039;s SMTP regardless, you would be advised to use a dedicated account for the purpose, and have an auto response so that messages to the address bounce back with an instruction to click on the link in the email and reply through Moodle.&lt;br /&gt;
# &#039;&#039;&#039;Daily limit of 500 sent messages.&#039;&#039;&#039; There is a daily limit on any one google account of [http://googlesystem.blogspot.com/2008/06/gmails-limitations-for-sending-messages.html 500 individual email messages, or 2000 recipients across all emails]. Your account can get blocked if you go over this on a regular basis. If you have more than 500 users, it will only take one message to the front page news forum to exceed this quota. &lt;br /&gt;
&lt;br /&gt;
== [[Email settings]] ==&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Email settings|Email]]&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP hosts:&#039;&#039;&#039; smtp.gmail.com:465   &#039;&#039;NOTE: Leave out the port (:465) in 1.9.2 or lower&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP username:&#039;&#039;&#039; Your email address @gmail.com or your own domain if using Google Apps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP password:&#039;&#039;&#039; password for the above email account&lt;br /&gt;
&lt;br /&gt;
== Code Modification ==&lt;br /&gt;
In your Moodle site go to &amp;lt;tt&amp;gt;/lib/phpmailer/&amp;lt;/tt&amp;gt; and modify the following file:&lt;br /&gt;
&lt;br /&gt;
=== class.smtp.php ===&lt;br /&gt;
Around line 83 DIRECTLY after the &#039;&#039;&#039;Connect&#039;&#039;&#039; function header, insert this line immediately after the &amp;quot;{&amp;quot; :&lt;br /&gt;
 $host = &#039;ssl://&#039; . $host;&lt;br /&gt;
&lt;br /&gt;
== Code Modification (1.9.2 or lower) == &lt;br /&gt;
These two additional modifications need to be made in 1.9.2 or lower as the &#039;&#039;&#039;SMTP hosts&#039;&#039;&#039; setting above will not allow the port to be included.&lt;br /&gt;
&lt;br /&gt;
=== class.phpmailer.php ===&lt;br /&gt;
around line 162 &lt;br /&gt;
*Change &amp;lt;tt&amp;gt;var $Port = 25;&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;var $Port = 465;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== class.smtp.php ===&lt;br /&gt;
around line 30&lt;br /&gt;
*Change &amp;lt;tt&amp;gt;var $SMTP_PORT = 25;&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;var $SMTP_PORT = 465;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tips and tricks ==&lt;br /&gt;
&lt;br /&gt;
* Some sites may need the additional step of un-commenting the &#039;&#039;&#039;php_openssl.dll&#039;&#039;&#039; extension in &amp;lt;tt&amp;gt;php.ini&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Google education edition with 1.9.9===&lt;br /&gt;
When using Google Education Edition with 1.99&lt;br /&gt;
&lt;br /&gt;
The latest php mailer is paramont. If someschool.edu email at google is not accepting mails from the moodle as valid mails you need to create an SPF record at your host, allowing mail from the Central Mail server, Google and the local server which satisified Google&#039;s validation desires.&lt;br /&gt;
&lt;br /&gt;
@ 14400 IN TXT &amp;quot;v=spf1 ip4:174.121.161.XXX&lt;br /&gt;
include:aspmx.googlemail.com mx:c1.hostname.com ~all&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This bit is server side more than moodle so if you are on managed or shared hosting the server admin will have to do the record (try submitting a request to have the record added with full details of how and why to do so) then follow the previous the directions in this record.&lt;br /&gt;
&lt;br /&gt;
== See also==&lt;br /&gt;
[[Email settings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ja:GmailでのEメール設定]]&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Upload_users&amp;diff=81180</id>
		<title>Upload users</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Upload_users&amp;diff=81180"/>
		<updated>2011-02-09T06:01:46Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Location: &#039;&#039;Administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Upload users preview.png|thumb|Upload users preview in Moodle 1.9]]&lt;br /&gt;
Firstly, note that it is usually not necessary to import users in bulk - to keep maintenance work down you should first explore forms of authentication that do not require manual maintenance, such as [[External database authentication|connecting to existing external databases]] or letting the [[Internal enrolment|users create their own accounts]]. See [[Manage authentication]] for more information.&lt;br /&gt;
&lt;br /&gt;
If you are sure you want to import multiple user accounts from a text file, then you need to format your text file as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Upload users file format==&lt;br /&gt;
&lt;br /&gt;
* Each line contains fields &#039;&#039;&#039;separated&#039;&#039;&#039; by commas (or other delimiters) without quotes (&amp;quot;) and no trailing delimiter&lt;br /&gt;
* The first line is special, and contains fieldnames defining the format for the rest of the file.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;:  In any order&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;username, password, firstname, lastname, email&amp;lt;/code&amp;gt;&lt;br /&gt;
:Validity checks are performed for:&lt;br /&gt;
#&amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; can only contain alphabetical &#039;&#039;&#039;lowercase&#039;&#039;&#039; letters , numbers, hypen &#039;-&#039;, underscore &#039;_&#039;, period &#039;.&#039;, or at-sign &#039;@&#039; &lt;br /&gt;
#&amp;lt;code&amp;gt;Password&amp;lt;/code&amp;gt; should meet the requirements for the site&#039;s [[Site_policies#Password_policy|Password policy]]. .To force password change, set the password field to &amp;lt;code&amp;gt;changeme&amp;lt;/code&amp;gt;.&lt;br /&gt;
#&amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; is in the form: &#039;&#039;name@example.com&#039;&#039; .&amp;lt;/p&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of these&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;institution, department, city, country, lang, auth, ajax, timezone, idnumber, icq, phone1, phone2, address, url, description, mailformat, maildisplay, htmleditor, autosubscribe, emailstop&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Custom profile field names&#039;&#039;&#039;: (Optional). xxxxx is the real custom user profile field name (i.e. the unique shortname)&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;profile_field_xxxxx&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
: Create the custom fields BEFORE importing. Use the standard header. The &amp;quot;shortname&amp;quot; for your custom field is xxxxx. The first record must include &amp;quot;profile_field_xxxxx&amp;quot;.&lt;br /&gt;
:&#039;&#039;&#039;Example&#039;&#039;&#039;: To create a custom field &amp;quot;genre&amp;quot;, you must write a shortname &amp;quot;genre&amp;quot; in the new field, and write &amp;quot;profile_field_genre&amp;quot; in the header of the .csv file.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Special fields&#039;&#039;&#039;: Used for changing of usernames or deleting of users&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;oldusername&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;deleted&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
*&#039;&#039;&#039;Enrolment fields&#039;&#039;&#039;: (Optional):&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;course1, type1, role1, group1, enrolperiod1, course2, type2, role2, group2, enrolperiod2&amp;lt;/code&amp;gt; etc.&lt;br /&gt;
**&amp;lt;code&amp;gt;course&amp;lt;/code&amp;gt; is the &amp;quot;shortname&amp;quot;  if present the user will be enrolled in those courses.&lt;br /&gt;
** &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; refers to the role to be used for associated course enrolment. Value 1 is default course role, 2 is legacy Teacher role and 3 is legacy Non-editing Teacher.&lt;br /&gt;
** You can use role field instead to specify roles directly - use either role short name or id (numeric names of roles are not supported).&lt;br /&gt;
** Users may be also assigned to groups in course (group1 in course1, group2 in course2, etc.).&lt;br /&gt;
*** A group is identified by name or id (numeric group names are not supported).&lt;br /&gt;
** From Moodle 2.0, you can set the enrolment duration, in days, for each course (&amp;lt;code&amp;gt;enrolperiod1&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;course1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;enrolperiod2&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;course2&amp;lt;/code&amp;gt;, etc.).&lt;br /&gt;
&lt;br /&gt;
Commas within  a field must be encoded as &amp;amp;#44 - the script will decode these back to commas.&lt;br /&gt;
&lt;br /&gt;
For Boolean fields, use &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; for false and &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; for true.&lt;br /&gt;
&lt;br /&gt;
Turn email off: &amp;lt;code&amp;gt;emailstop&amp;lt;/code&amp;gt; set to &amp;lt;CODE&amp;gt;1&amp;lt;/CODE&amp;gt; if the email address should be disabled (default: email is enabled):&lt;br /&gt;
&lt;br /&gt;
To prevent users from receiving a large number of emails from courses or forced subscription forums use the &#039;&#039;&#039;maildigest&#039;&#039;&#039;.  The options for this field are 0 = No digest, 1 = Complete digest and 2 = Digest with just subjects.&lt;br /&gt;
&lt;br /&gt;
Here is an example of a valid upload file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;username, password, firstname, lastname, email, course1, group1&amp;lt;br /&amp;gt;&lt;br /&gt;
jonest, verysecret, Tom, Jones, jonest@someplace.edu, math102, Section 1&amp;lt;br /&amp;gt;&lt;br /&gt;
reznort, somesecret, Trent, Reznor, reznort@someplace.edu,math102, Section 3&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Updating existing accounts==&lt;br /&gt;
By default Moodle  creates new user accounts, and skips lines where the &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; matches an existing account. Set &amp;quot;Upload Type&amp;quot; to &#039;&#039;&#039;Add  new and update existing accounts&#039;&#039;&#039;, and existing user account will be updated.&lt;br /&gt;
&lt;br /&gt;
Include  fieldname &amp;lt;code&amp;gt;oldusername&amp;lt;/code&amp;gt; to updating existing accounts and change usernames.  In the preview options, Set &amp;quot;Allow renames&amp;quot; to &#039;&#039;&#039;Yes&#039;&#039;. &lt;br /&gt;
&#039;&#039;&#039;Warning&#039;&#039;&#039;: errors updating existing accounts can affect your users badly. Be careful when using the options to update.&lt;br /&gt;
&lt;br /&gt;
==After preview==&lt;br /&gt;
After the preprocessing, depending on the contents of the upload, the following may be available before final user creation&lt;br /&gt;
*Settings&lt;br /&gt;
** New user password &lt;br /&gt;
** Existing user details&lt;br /&gt;
** Existing user password&lt;br /&gt;
** Allow renames&lt;br /&gt;
** Allow deletes&lt;br /&gt;
** Prevent email addess duplicates&lt;br /&gt;
** Select for bulk operations&lt;br /&gt;
&lt;br /&gt;
* Default values&lt;br /&gt;
** Authentication method: Manual account |no login | EMail-based self-registration&lt;br /&gt;
** Email display: Allow only other course members to see my email address | hide .. from everyone | allow anyone ...&lt;br /&gt;
** Email format Pretty HTML | plain text&lt;br /&gt;
** Email digest type: none|complete subjects&lt;br /&gt;
** Forum auto-subscribe: no |yes when  I post&lt;br /&gt;
** When editing text: use HTML| standard web forms&lt;br /&gt;
** AJAX and Javascript: yes|no&lt;br /&gt;
** city/town&lt;br /&gt;
** country&lt;br /&gt;
** timezone&lt;br /&gt;
** Preferred language&lt;br /&gt;
** Description&lt;br /&gt;
** Web page&lt;br /&gt;
** ID number&lt;br /&gt;
** Institution&lt;br /&gt;
** Department&lt;br /&gt;
** Phone&lt;br /&gt;
** Mobile Phone&lt;br /&gt;
** Address&lt;br /&gt;
&lt;br /&gt;
==After results ==&lt;br /&gt;
Users which were not added, will NOT be auto-enrolled in courses&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Open another moodle browser and &lt;br /&gt;
* Site administration&lt;br /&gt;
** Courses&lt;br /&gt;
*** Add/edit courses; select the category, and the course&lt;br /&gt;
* Course administration&lt;br /&gt;
** Users&lt;br /&gt;
*** Enrolled Users&lt;br /&gt;
**** Enrol users and select the users flagged from other window&lt;br /&gt;
&lt;br /&gt;
==Templates==&lt;br /&gt;
&lt;br /&gt;
The default values are processed as templates in which the following codes are allowed:&lt;br /&gt;
&lt;br /&gt;
* %l - will be replaced by the lastname&lt;br /&gt;
* %f - will be replaced by the firstname&lt;br /&gt;
* %u - will be replaced by the username&lt;br /&gt;
* %% - will be replaced by the %&lt;br /&gt;
&lt;br /&gt;
Between the percent sign (%) and any code letter (l, f or u) the following modifiers are allowed:&lt;br /&gt;
&lt;br /&gt;
* (-) minus sign - the information specified by the code letter will be converted to lowercase&lt;br /&gt;
* (+) plus sign - the information specified by the code letter will be converted to UPPERCASE&lt;br /&gt;
* (~) tilde sign - the information specified by the code letter will be converted to Title Case&lt;br /&gt;
* a decimal number - the information specified by the code letter will be truncated to that many characters&lt;br /&gt;
&lt;br /&gt;
For example, if the firstname is John and the lastname is Doe, the following values will be obtained with the specified templates:&lt;br /&gt;
&lt;br /&gt;
* %l%f = DoeJohn&lt;br /&gt;
* %l%1f = DoeJ&lt;br /&gt;
* %-l%+f = doeJOHN&lt;br /&gt;
* %-f_%-l = john_doe&lt;br /&gt;
* http://www.example.com/~%u/ = http://www.example.com/~jdoe/ (if the username is jdoe or %-1f%-l)&lt;br /&gt;
&lt;br /&gt;
Template processing is done only on default values, and not on the values retrieved from the CSV file.&lt;br /&gt;
&lt;br /&gt;
In order to create correct Moodle usernames, the username is always converted to lowercase. Moreover, if the &amp;quot;Allow extended characters in usernames&amp;quot; option in the Site policies page is off, characters different to letters, digits, dash (-) and dot (.) are removed. For example if the firstname is John Jr. and the lastname is Doe, the username %-f_%-l will produce john jr._doe when Allow extended characters in usernames is on, and johnjr.doe when off.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;New username duplicate handling&amp;quot; setting is set to Append counter, an auto-increment counter will be append to duplicate usernames produced by the template. For example, if the CSV file contains the users named John Doe, Jane Doe and Jenny Doe without explicit usernames, the default username is %-1f%-l and New username duplicate handling is set to Append counter, then the usernames produced will be jdoe, jdoe2 and jdoe3. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Deleting accounts==&lt;br /&gt;
&lt;br /&gt;
If the &amp;lt;code&amp;gt;deleted&amp;lt;/code&amp;gt; field is present, users with value 1 for it will be deleted. In this case, all the fields may be omitted, except for &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Deleting and uploading accounts could be done with a single CSV file. For example, the following file will add the user Tom Jones and delete the user reznort:&lt;br /&gt;
&lt;br /&gt;
 username, firstname, lastname, deleted&lt;br /&gt;
 jonest, Tom, Jones, 0&lt;br /&gt;
 reznort, , , 1 &lt;br /&gt;
&lt;br /&gt;
==Encoding==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.8 the file must be UTF-8. In Moodle 1.9 onwards, the encoding may be selected from a large list, including ISO-8859-1.&lt;br /&gt;
&lt;br /&gt;
==Hints==&lt;br /&gt;
&lt;br /&gt;
===Spreadsheet===&lt;br /&gt;
&lt;br /&gt;
If you use a spreadsheet program such as Excel to create your .csv file, check the resulting output in a text editor before you upload it.  It is possible to get trailing commas on each line from an empty field if you have added and deleted columns of information prior to saving the final file. Also check the character encoding. A csv file is a simple text file (ASCII or Unicode) that can be used to upload user accounts.&lt;br /&gt;
&lt;br /&gt;
Excel translates passwords that begin with - (minus) or + (plus) as zero. Even when saving as .csv and saying &amp;quot;Yes&amp;quot; to &amp;quot;Keep this format, and leave out any incompatible features.&amp;quot; Check for this before uploading, as a zero halts the upload process.&lt;br /&gt;
&lt;br /&gt;
If you use a formula in Excel to create fields (for example, the concatenate function to create a user name), then remember to copy the cells with the formula and use special paste with values checked to make them into an acceptable data for a csv file.&lt;br /&gt;
&lt;br /&gt;
===Country===&lt;br /&gt;
The country should be written as a two letter code, in capitals. For example, use BE for Belgium or NL for the Netherlands.  Using &amp;quot;be&amp;quot; or &amp;quot;nl&amp;quot; as a country code will result in a database error.&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039;  If you are having trouble working out the two-letter code for a country, you can consult this Moodle source code file /moodle/lang/en_utf8/countries.php [http://cvs.moodle.org/moodle/lang/en_utf8/countries.php?view=markup&amp;amp;pathrev=MOODLE_19_STABLE or click here for a 1.9 STABLE list].&lt;br /&gt;
ISO Website: [http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
Moodle Docs:&lt;br /&gt;
*[[Flat file]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36851 Can I auto enroll from Excel?]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=58215 Making Email Optional]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=97903 Uploading users to custom roles]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=144569 Matriculacion con flat file csv] - discussion in Spanish&lt;br /&gt;
&lt;br /&gt;
[[Category:Authentication]]&lt;br /&gt;
[[Category:Enrolment]]&lt;br /&gt;
[[Category:Groups]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Importer des utilisateurs]]&lt;br /&gt;
[[ja:ユーザのアップロード]]&lt;br /&gt;
[[zh:上传用户]]&lt;br /&gt;
[[ru:Загрузка пользователей]]&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Email_setup_gmail&amp;diff=78004</id>
		<title>Email setup gmail</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Email_setup_gmail&amp;diff=78004"/>
		<updated>2010-11-21T18:17:27Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Google&#039;s mail servers can be set up as the SMTP server for Moodle.  This reduces or eliminates the need for an email service on a server and is especially useful if [http://www.google.com/apps/ Google Apps] is used by the institution using Moodle.  &lt;br /&gt;
&lt;br /&gt;
This will require a hack to the code.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important warning&#039;&#039;&#039;: When sending emails, Moodle attempts to send them &amp;quot;From&amp;quot; the email address of the user writing the message, this allows the recipient to reply directly to the sender via email. Google, both in their Gmail and Apps for Education product do not allow this - so any emails sent from the system will be from the account you use to authenticate on the SMTP server. To make things more confusing, the name will be the recipients, but the email address will be the SMTP account&#039;s email address, for example: &amp;quot;Dr Fred Bloggs&amp;quot; &amp;lt;moodlemail@mycollege.edu&amp;gt;. This does not render the Gmail useless for Moodle, emails all come with a link you can click through and reply on Moodle, but it is important you understand this limitation before continuing with this setup. If you wanted to use Gmail&#039;s SMTP regardless, you would be advised to use a dedicated account for the purpose, and have an auto response so that messages to the address bounce back with an instruction to click on the link in the email and reply through Moodle.&lt;br /&gt;
&lt;br /&gt;
== [[Email settings]] ==&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Email settings|Email]]&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP hosts:&#039;&#039;&#039; smtp.gmail.com:465   &#039;&#039;NOTE: Leave out the port (:465) in 1.9.2 or lower&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP username:&#039;&#039;&#039; Your email address @gmail.com or your own domain if using Google Apps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP password:&#039;&#039;&#039; password for the above email account&lt;br /&gt;
&lt;br /&gt;
== Code Modification ==&lt;br /&gt;
In your Moodle site go to &amp;lt;tt&amp;gt;/lib/phpmailer/&amp;lt;/tt&amp;gt; and modify the following file:&lt;br /&gt;
&lt;br /&gt;
=== class.smtp.php ===&lt;br /&gt;
Around line 83 DIRECTLY after the &#039;&#039;&#039;Connect&#039;&#039;&#039; function header, insert this line immediately after the &amp;quot;{&amp;quot; :&lt;br /&gt;
 $host = &#039;ssl://&#039; . $host;&lt;br /&gt;
&lt;br /&gt;
== Code Modification (1.9.2 or lower) == &lt;br /&gt;
These two additional modifications need to be made in 1.9.2 or lower as the &#039;&#039;&#039;SMTP hosts&#039;&#039;&#039; setting above will not allow the port to be included.&lt;br /&gt;
&lt;br /&gt;
=== class.phpmailer.php ===&lt;br /&gt;
around line 162 &lt;br /&gt;
*Change &amp;lt;tt&amp;gt;var $Port = 25;&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;var $Port = 465;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== class.smtp.php ===&lt;br /&gt;
around line 30&lt;br /&gt;
*Change &amp;lt;tt&amp;gt;var $SMTP_PORT = 25;&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;var $SMTP_PORT = 465;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tips and tricks ==&lt;br /&gt;
&lt;br /&gt;
* Some sites may need the additional step of un-commenting the &#039;&#039;&#039;php_openssl.dll&#039;&#039;&#039; extension in &amp;lt;tt&amp;gt;php.ini&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Google education edition with 1.9.9===&lt;br /&gt;
When using Google Education Edition with 1.99&lt;br /&gt;
&lt;br /&gt;
The latest php mailer is paramont. If someschool.edu email at google is not accepting mails from the moodle as valid mails you need to create an SPF record at your host, allowing mail from the Central Mail server, Google and the local server which satisified Google&#039;s validation desires.&lt;br /&gt;
&lt;br /&gt;
@ 14400 IN TXT &amp;quot;v=spf1 ip4:174.121.161.XXX&lt;br /&gt;
include:aspmx.googlemail.com mx:c1.hostname.com ~all&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This bit is server side more than moodle so if you are on managed or shared hosting the server admin will have to do the record (try submitting a request to have the record added with full details of how and why to do so) then follow the previous the directions in this record.&lt;br /&gt;
&lt;br /&gt;
== See also==&lt;br /&gt;
[[Email settings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ja:GmailでのEメール設定]]&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=Email_setup_gmail&amp;diff=77750</id>
		<title>Email setup gmail</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=Email_setup_gmail&amp;diff=77750"/>
		<updated>2010-11-14T18:29:06Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: Updated with &amp;quot;From&amp;quot; issue warning&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Google&#039;s mail servers can be set up as the SMTP server for Moodle.  This reduces or eliminates the need for an email service on a server and is especially useful if [http://www.google.com/apps/ Google Apps] is used by the institution using Moodle.  &lt;br /&gt;
&lt;br /&gt;
This will require a hack to the code.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important warning&#039;&#039;&#039;: When sending emails, Moodle attempts to send them &amp;quot;From&amp;quot; the email address of the user writing the message, this allows the recipient to reply directly to the sender via email. Google, both in their Gmail and Apps for Education product do not allow this - so any emails sent from the system will be from the account you use to authenticate. To make things more confusing, the name will be the recipients, but the email address will be the SMTP account&#039;s email address, for example: &amp;quot;Dr Fred Bloggs&amp;quot; &amp;lt;moodlemail@mycollege.edu&amp;gt;. This does not render the Gmail useless for Moodle, emails all come with a link you can click through and reply on Moodle, but it is important you understand this limitation before continuing with this setup. If you wanted to use Gmail&#039;s SMTP regardless, you would be advised to use a dedicated account for the purpose, and have an auto response so that messages to the address bounce back with an instruction to click on the link in the email and reply through Moodle.&lt;br /&gt;
&lt;br /&gt;
== [[Email settings]] ==&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Email settings|Email]]&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP hosts:&#039;&#039;&#039; smtp.gmail.com:465   &#039;&#039;NOTE: Leave out the port (:465) in 1.9.2 or lower&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP username:&#039;&#039;&#039; Your email address @gmail.com or your own domain if using Google Apps&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SMTP password:&#039;&#039;&#039; password for the above email account&lt;br /&gt;
&lt;br /&gt;
== Code Modification ==&lt;br /&gt;
In your Moodle site go to &amp;lt;tt&amp;gt;/lib/phpmailer/&amp;lt;/tt&amp;gt; and modify the following file:&lt;br /&gt;
&lt;br /&gt;
=== class.smtp.php ===&lt;br /&gt;
Around line 83 DIRECTLY after the &#039;&#039;&#039;Connect&#039;&#039;&#039; function header, insert this line immediately after the &amp;quot;{&amp;quot; :&lt;br /&gt;
 $host = &#039;ssl://&#039; . $host;&lt;br /&gt;
&lt;br /&gt;
== Code Modification (1.9.2 or lower) == &lt;br /&gt;
These two additional modifications need to be made in 1.9.2 or lower as the &#039;&#039;&#039;SMTP hosts&#039;&#039;&#039; setting above will not allow the port to be included.&lt;br /&gt;
&lt;br /&gt;
=== class.phpmailer.php ===&lt;br /&gt;
around line 162 &lt;br /&gt;
*Change &amp;lt;tt&amp;gt;var $Port = 25;&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;var $Port = 465;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== class.smtp.php ===&lt;br /&gt;
around line 30&lt;br /&gt;
*Change &amp;lt;tt&amp;gt;var $SMTP_PORT = 25;&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;var $SMTP_PORT = 465;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tips and tricks ==&lt;br /&gt;
&lt;br /&gt;
* Some sites may need the additional step of un-commenting the &#039;&#039;&#039;php_openssl.dll&#039;&#039;&#039; extension in &amp;lt;tt&amp;gt;php.ini&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Google education edition with 1.9.9===&lt;br /&gt;
When using Google Education Edition with 1.99&lt;br /&gt;
&lt;br /&gt;
The latest php mailer is paramont. If someschool.edu email at google is not accepting mails from the moodle as valid mails you need to create an SPF record at your host, allowing mail from the Central Mail server, Google and the local server which satisified Google&#039;s validation desires.&lt;br /&gt;
&lt;br /&gt;
@ 14400 IN TXT &amp;quot;v=spf1 ip4:174.121.161.XXX&lt;br /&gt;
include:aspmx.googlemail.com mx:c1.hostname.com ~all&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This bit is server side more than moodle so if you are on managed or shared hosting the server admin will have to do the record (try submitting a request to have the record added with full details of how and why to do so) then follow the previous the directions in this record.&lt;br /&gt;
&lt;br /&gt;
== See also==&lt;br /&gt;
[[Email settings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ja:GmailでのEメール設定]]&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/310/en/index.php?title=User:Ian_McNaught&amp;diff=77598</id>
		<title>User:Ian McNaught</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/310/en/index.php?title=User:Ian_McNaught&amp;diff=77598"/>
		<updated>2010-11-09T00:01:10Z</updated>

		<summary type="html">&lt;p&gt;Ianmcn: New page: Only been working with Moodle since early 2010, after a 6 year sentence working with Blackboard. Still getting used to Moodle, but liking what I see so far, it is clearly developed by peop...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Only been working with Moodle since early 2010, after a 6 year sentence working with Blackboard. Still getting used to Moodle, but liking what I see so far, it is clearly developed by people who love it and use it daily.&lt;br /&gt;
&lt;br /&gt;
I work as Director of elearning for Majan University College in Muscat, Oman where we run Moodle for around 2000 HE and FE students.&lt;/div&gt;</summary>
		<author><name>Ianmcn</name></author>
	</entry>
</feed>