You're right. I looked over Heroku's instructions for how to setup Sendgrid by creating a separate file (config/initializers/mail.rb). There is a line in there that was overriding my test settings.
I've removed the last line, which is ActionMailer::Base.delivery_method = :smtp, and left that up to each individual environment to take care of (production, development and test). Thanks! On Feb 15, 5:02 am, Chap <[email protected]> wrote: > When you say "features" I'm assuming you're talking cucumber? > In that case I believe you have a separate environments/cucumber.rb > where you'll need to set the action mailer to test mode. > > On Feb 14, 8:42 am, demetrius <[email protected]> wrote: > > > > > > > > > OOPS! I've exceeded my Sendgrid email limit while running my features. > > Does anyone have any advice for how I can re-configure my test > > environment to not actually use Sendgrid? > > > Config/environments/test.rb (current settings) > > > # Tell Action Mailer not to deliver emails to the real world. > > # The :test delivery method accumulates sent emails in the > > # ActionMailer::Base.deliveries array. > > config.action_mailer.delivery_method = :test > > > #devise authentication configuration > > config.action_mailer.default_url_options = { :host => 'localhost: > > 3000' } > > > Log Error: > > 451 Authentication failed: Maximum credits exceeded > > (Net::SMTPAuthenticationError) -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
