Tanya 210 : Menset Email di MediaWiki

Tanya :

Bagaimana agar fungsi email di mediawiki bisa berjalan dengan baik ? Saya menggunakan ubuntu server

Jawab :

Pertama kita install dulu beberapa paket yang dibutuhkan

sudo apt-get install php-pear
sudo pear install mail
sudo pear install Net_SMTP

Lalu edit dan tambahkan beberapa baris berikut di  LocalSettings.php agar SMTP server bisa mengirimkan email keluar. Contoh :

$wgEnableEmail      = true;
$wgEnableUserEmail  = true;
$wgEmergencyContact = "wikidude@mydomain.com";
$wgPasswordSender = "wikidude@mydomain.com";
$wgNoReplyAddress = "noreply@mydomain.com";
$wgPasswordSender = "password_reminder@mydomain.com";

$wgSMTP = array(
 'host'     => "ssl://smtp.gmail.com",
 'IDhost'   => "gmail.com",
 'port'     => 465,
 'auth'     => true,
 'username' => "user_name@mydomain.com",
 'password' => "user_password"
);

Demikian, semoga manfaat (rezaervani@gmail.com)

Be the first to comment

Leave a Reply

Your email address will not be published.


*