Skip to content
Browse files

add rake task for re-send signup activation emails

  • Loading branch information...
1 parent aa71e64 commit 43402dbb7c06f431f14d95f0ed10b866162e57c4 @crossblaim crossblaim committed Sep 30, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/tasks/maintenance.rake
View
8 lib/tasks/maintenance.rake
@@ -7,6 +7,14 @@ namespace :maintenance do
end
end
+ desc "Re-send signup notifications to created but not active users"
+ task :resend_signup_emails => :environment do
+ users = User.all(:conditions => { :activated_at => nil })
+ users.each do |user|
+ UserMailer.deliver_signup_notification(user)
+ end
+ end
+
namespace :messages do
desc "Regenerate message html"

0 comments on commit 43402db

Please sign in to comment.
Something went wrong with that request. Please try again.