From 968bacc8775021d0164e26a51db9e9c08f0c9341 Mon Sep 17 00:00:00 2001 From: Yaco Date: Sat, 30 Nov 2019 04:25:08 -0300 Subject: mejora envio de correos de contacto y de nuevos usuarios --- www/wiki/LocalSettings.Reevo.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www/wiki/LocalSettings.Reevo.php b/www/wiki/LocalSettings.Reevo.php index 64704bec..ca57893a 100644 --- a/www/wiki/LocalSettings.Reevo.php +++ b/www/wiki/LocalSettings.Reevo.php @@ -408,13 +408,14 @@ require_once( "$IP/extensions/HideEmptySections/HideEmptySections.php" ); ## NewUserNotif require_once "$IP/extensions/NewUserNotif/NewUserNotif.php"; $wgNewUserNotifEmailTargets = array( - 'sysadmins@reevo.org' + 'info2019@reevo.org' ); ## ContactPage +$wgUserEmailUseReplyTo = true; wfLoadExtension( 'ContactPage' ); $wgContactConfig['default'] = array( - 'RecipientUser' => 'Yaco', // Must be the name of a valid account which also has a verified e-mail-address added to it. + 'RecipientUser' => 'Reebot', // Must be the name of a valid account which also has a verified e-mail-address added to it. 'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated 'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required 'RequireDetails' => true, // Either "true" or "false" as required @@ -437,7 +438,9 @@ $wgCaptchaTriggers['contactpage'] = true; $wgHooks['EmailUser'][] = function ( &$address, &$from, &$subject, &$text, &$error ) { global $wgPasswordSender; - $from->address = $wgPasswordSender; + $subject = '[reevo.wiki] Contacto: ' . $subject; + $address->address = 'info2019@reevo.org'; +# $from->address = $wgPasswordSender; }; -- cgit v1.2.1