Where did you put your Sendgrid config? E.g., this block:
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => 'plain',
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => 'heroku.com'
}
ActionMailer::Base.delivery_method = :smtp
Heroku's documentation tells you to put it in config/initializers/mail.rb,
but this is actually executed *after* config/environments/test.rb, so it
might be overwriting your delivery_method. I've had better luck putting it
in config/environments/production.rb, which is only executed in production.
Hope that helps. :)
Harry
On Tue, Feb 14, 2012 at 6: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.
>
>
--
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.