From 914de296a15593a3df2ded680c177aaf24b727c7 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 4 May 2011 11:05:38 -0700 Subject: [PATCH] send a confirmation email when registering by script --- plugins/EmailRegistration/scripts/registeremailuser.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/EmailRegistration/scripts/registeremailuser.php b/plugins/EmailRegistration/scripts/registeremailuser.php index a8c942d3dd..a9eff9a848 100644 --- a/plugins/EmailRegistration/scripts/registeremailuser.php +++ b/plugins/EmailRegistration/scripts/registeremailuser.php @@ -20,11 +20,14 @@ define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); +$shortoptions = 'w'; +$longoptions = array('welcome'); + $helptext = << Options: --e --email Send a confirmation message to the email address +-w --welcome Send a welcome email register a new user by email address. @@ -40,7 +43,7 @@ $email = $args[0]; $confirm = EmailRegistrationPlugin::registerEmail($email); -if (have_option('e', 'email')) { +if (have_option('w', 'welcome')) { EmailRegistrationPlugin::sendConfirmEmail($confirm); } -- 2.39.5