-
Notifications
You must be signed in to change notification settings - Fork 6
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
Doesn't work with any field #3
Comments
@Looooong would you clarify how to reproduce this error? |
@cainlevy I just try a piece of example code in my project code
It seems like the Perhaps this error relates to the version of Rails? |
Sure, what versions of Rails and Mail do you have? Would you also try:
Which should look something like:
|
Rails 4.2.6, ActionMailer 4.2.6, Mail 2.6.4 And |
class TestMailer < ActionMailer::Base
def test
mail.smtpapi.category = 'My category'
mail(to: '[email protected]', subject: 'Test')
end
end
|
this works for me:
So I wonder if you have a gem conflict. Your pasted pry session says that the mail is delivered and then errors. Maybe that's a Mail observer? I believe you can check with:
|
|
I ran into the same error when I tried to pass the unsubscribe group ID as an integer instead of as a string. Hope this helps anyone making the same mistake I did. Badmessage.smtpapi.asm_group_id = 52 Goodmessage.smtpapi.asm_group_id = "52" |
Rails version 4.2.6
The text was updated successfully, but these errors were encountered: