##// END OF EJS Templates
use rake task parameter style message if redmine:email:test parameter is blank....
Toshi MARUYAMA -
r5818:60a3ebfa8a47
parent child
Show More
@@ -169,7 +169,7 END_DESC
169 169 desc "Send a test email to the user with the provided login name"
170 170 task :test, :login, :needs => :environment do |task, args|
171 171 include Redmine::I18n
172 abort l(:notice_email_error, "Please include the user login to test with. Example: login=examle-login") if args[:login].blank?
172 abort l(:notice_email_error, "Please include the user login to test with. Example: rake redmine:email:test[login]") if args[:login].blank?
173 173
174 174 user = User.find_by_login(args[:login])
175 175 abort l(:notice_email_error, "User #{args[:login]} not found") unless user.logged?
General Comments 0
You need to be logged in to leave comments. Login now