Difference between revisions of "Wiki - Email Setup"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
I've done this through Gmail here. (Any email you get from this server is being sent by '''the.nerd.mage@gmail.com''') | I've done this through Gmail here. (Any email you get from this server is being sent by '''the.nerd.mage@gmail.com''') | ||
(So far, this page is mostly a copy-pasta of [https://www.mediawiki.org/wiki/Manual:$wgSMTP#Gmail these instructions]...) | |||
= Create & configure a Gmail account for your wiki = | = Create & configure a Gmail account for your wiki = | ||
# Head over to [https://gmail.com/ Gmail] | # Head over to [https://gmail.com/ Gmail] |
Revision as of 14:59, 4 January 2022
In order for MediaWiki to use email (confirmations, notifications, Special:Emailuser), you'll need to configure it to use a mail server.
I've done this through Gmail here. (Any email you get from this server is being sent by the.nerd.mage@gmail.com)
(So far, this page is mostly a copy-pasta of these instructions...)
Create & configure a Gmail account for your wiki
- Head over to Gmail
- If you already use Gmail, you'll probably find yourself already signed in...
- If this is the case, click your profile link (top right corner) & select Add another account.
- If not, follow the directions to create an account.
- Follow these directions to set up an App Password for MediaWiki to use the account.
Configure your wiki to use the Gmail account
sudo vi LocalSettings.php
:
############### # Email Setup # ############### $wgSMTP = [ 'host' => 'ssl://smtp.gmail.com', // hostname of the email server 'IDHost' => 'gmail.com', 'port' => 465, 'username' => 'YOURNAME@gmail.com', // user of the email account 'password' => '****************', // app password of the email account 'auth' => true ];
After this you may get an authentication failure type error. You will need to sign into the gmail account you are using and verify that the person that just signed in is you. You only need to verify this one time. (gmail will send you an email and you just follow the instructions)