Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mails are not intercepted #35

Closed
winston opened this issue Nov 17, 2015 · 5 comments
Closed

Mails are not intercepted #35

winston opened this issue Nov 17, 2015 · 5 comments

Comments

@winston
Copy link

winston commented Nov 17, 2015

Hi @ankane!

I have a problem where my mails on Heroku are not being intercepted and hence no Ahoy::Message is created everytime I send a mail. It's a Rails 4 app. (It's working on local.)

I am using sendgrid for sending my mails. Will this affect it?
I am also sending my emails as background jobs using suckerpunch.

I do see that the AhoyEmail::Interceptor has been registered:

irb(main):018:0> Mail.class_variable_get(:@@delivery_interceptors)
=> [AhoyEmail::Interceptor]

The mails actually get sent through, and there are no errors. It just seems that the interceptor is not kicking in?

Would you be able to point me in the right direction? Thank you so much!

@winston
Copy link
Author

winston commented Nov 17, 2015

Hmm.. I am not sure what happened, but I tried it several times earlier and it didn't work, but as soon as I posted this, it worked all of a sudden... Closing this for now. Sorry for the trouble!

@winston winston closed this as completed Nov 17, 2015
@ankane
Copy link
Owner

ankane commented Nov 17, 2015

No worries, glad it's working!

@ericraio
Copy link

i'm current'y having this issue, any ideas?

@rossettistone
Copy link

@ericraio Did you ever get to the bottom of this? I've been having the same issue for two weeks now, and am at a loss. It started happening when I bumped to Rails 5.1, but I don't see any relevant config changes in 5.1 that would have caused the problem.

@rossettistone
Copy link

The issue seems to have vanished, though I can't seem to credit it to anything. sigh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants