$wgSMTP

From Yahya's Wikisphere

(Redirected from $wgSMTP)

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
  1. Open a google account.
  2. Enable 2 Factor authentication (My Acoount>Security).
  3. Generate an app password (My Acoount>Security).
  4. Copy the code below and make the necessary changes.
  5. 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
];
Cookies help us deliver our services. By using our services, you agree to our use of cookies.