$wgSMTP
From Muhammad Yahya
This page provides an example for setting the $wgSMTP
configuration parameter if you would like to use Gmail for sending emails by your wiki.
- Step by step procedure
- Open a google account.
- Enable 2 Factor authentication (My Acoount>Security).
- Generate an app password (My Acoount>Security).
- Copy the code below and make the necessary changes.
- Paste it on LocalSettings.php :)
$wgSMTP = [
'host' => 'ssl://smtp.gmail.com', // hostname of the email server
'IDHost' => 'your-wiki-name.com', //your wiki domain, i.e: wiki.yahyabd.xyz
'port' => 465,
'username' => 'myemail@gmail.com', // user of the email account
'password' => '****************', // app password of the email account
'auth' => true
];