could not get 3xx (550)

Getting strange error while performing rake task.

Automated creating users for testing.

It's creating users till number 999, getting error while creating user

Rake Task :

desc "Generate test users"
  task :generate_test_users => :environment do
    for i in (1..5000)
      User.create(:username=>"user#{i}", :email=>"user#{i}",
:password=>"123456", :confirm_password=>"123456", :state=>"Active",
:first_name=>"user_first#{i}", :last_name=>"user_last#{i}",
:activation_state=>"Active", :is_admin=>false, :product_source=>"Both")
      puts "user#{i}"


Please suggest.


It appears to be attempting to send an email for each user created,
did you intend that? The problem is something to do with that.

Which version of ruby and which version of rails are you using?


It's blowing up in an SMTP transfer - my guess is that whatever email
server you've set up for ActionMailer is rate-limiting at 1000 emails.

If you're just trying to set up some dummy user accounts, you may want
to set ActionMailer::Base.delivery_method = :test at the beginning of
the task.

--Matt Jones

Colin Law wrote in post #1039845:

Matt Jones wrote in post #1039979: