Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created May 3, 2011 15:39
Show Gist options
  • Save edavis10/953562 to your computer and use it in GitHub Desktop.
Save edavis10/953562 to your computer and use it in GitHub Desktop.
Rake
desc "Send a test email to the user with the provided login name"
task :test, :login, :needs => :environment do |task, args|
# uses args[:login]
end
$ rake -T email:test
rake redmine:email:test[login] # Send a test email to the user with the provided login name
$ rake redmine:email:test login=admin
An email was sent to admin@example.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment