« Configuration SMTP Mailo pour MediaWiki » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 23 : | Ligne 23 : | ||
</pre> | </pre> | ||
Tester l’envoi d’un e-mail | <big>'''Tester l’envoi d’un e-mail'''</big> | ||
Depuis le dossier racine de ton MediaWiki : | Depuis le dossier racine de ton MediaWiki : | ||
php maintenance/sendTestMail.php --to ton.adresse@mailo.com | php maintenance/sendTestMail.php --to ton.adresse@mailo.com | ||
Version du 20 octobre 2025 à 15:20
Ajouter (ou adapter) les lignes suivantes à la fin de ton fichier LocalSettings.php :
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEmergencyContact = "ton.adresse@mailo.com";
$wgPasswordSender = "ton.adresse@mailo.com";
$wgEnotifUserTalk = true;
$wgEnotifWatchlist = true;
$wgEmailAuthentication = true;
$wgSMTP = [
'host' => 'smtp.mailo.com',
'IDHost' => 'mailo.com',
'port' => 465,
'auth' => true,
'username' => 'ton.adresse@mailo.com',
'password' => 'ton_mot_de_passe_mailo',
];
Tester l’envoi d’un e-mail
Depuis le dossier racine de ton MediaWiki :
php maintenance/sendTestMail.php --to ton.adresse@mailo.com