Wiki - Email Setup
Jump to navigation
Jump to search
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... Watch for future refinements.)
Using Gmail
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)
Using a locally hosted SMTP server
Coming soon...
(With any luck...)