{"action":"created","issue":{"url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/79","repository_url":"https://api.github.com/repos/mailjet/mailjet-gem","labels_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/79/comments","events_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/79/events","html_url":"https://github.com/mailjet/mailjet-gem/issues/79","id":172296475,"number":79,"title":"Email arrives with empty body","user":{"login":"thehappycoder","id":60022,"avatar_url":"https://avatars.githubusercontent.com/u/60022?v=3","gravatar_id":"","url":"https://api.github.com/users/thehappycoder","html_url":"https://github.com/thehappycoder","followers_url":"https://api.github.com/users/thehappycoder/followers","following_url":"https://api.github.com/users/thehappycoder/following{/other_user}","gists_url":"https://api.github.com/users/thehappycoder/gists{/gist_id}","starred_url":"https://api.github.com/users/thehappycoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehappycoder/subscriptions","organizations_url":"https://api.github.com/users/thehappycoder/orgs","repos_url":"https://api.github.com/users/thehappycoder/repos","events_url":"https://api.github.com/users/thehappycoder/events{/privacy}","received_events_url":"https://api.github.com/users/thehappycoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-20T23:40:14Z","updated_at":"2016-08-27T23:40:42Z","closed_at":null,"body":"The email has a body:\r\n```\r\nTestMailer.test.body.raw_source\r\n  Rendering test_mailer/test.html.erb\r\n  Rendered test_mailer/test.html.erb (0.0ms)\r\nTestMailer#test: processed outbound mail in 20.6ms\r\n => \":)\\n\"\r\n```\r\n\r\nBut when I send it, it arrives without body.\r\n\r\nRails 5.0.0\r\nmailjet 1.4.9\r\n\r\nIf you don't support this version of rails yet, please tell me when do you plan to."},"comment":{"url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/comments/242946967","html_url":"https://github.com/mailjet/mailjet-gem/issues/79#issuecomment-242946967","issue_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/79","id":242946967,"user":{"login":"thehappycoder","id":60022,"avatar_url":"https://avatars.githubusercontent.com/u/60022?v=3","gravatar_id":"","url":"https://api.github.com/users/thehappycoder","html_url":"https://github.com/thehappycoder","followers_url":"https://api.github.com/users/thehappycoder/followers","following_url":"https://api.github.com/users/thehappycoder/following{/other_user}","gists_url":"https://api.github.com/users/thehappycoder/gists{/gist_id}","starred_url":"https://api.github.com/users/thehappycoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehappycoder/subscriptions","organizations_url":"https://api.github.com/users/thehappycoder/orgs","repos_url":"https://api.github.com/users/thehappycoder/repos","events_url":"https://api.github.com/users/thehappycoder/events{/privacy}","received_events_url":"https://api.github.com/users/thehappycoder/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T23:40:42Z","updated_at":"2016-08-27T23:40:42Z","body":"@arnaudbreton No worries\r\n\r\nIt seems to be working when I use :mailjet:\r\nconfig.action_mailer.delivery_method = :mailjet\r\n\r\nAnd it doesn't when I use :mailjet_api. It is worth mentioning that mailjet_api worked when I was using one of the beta versions of rails 5\r\nI also get this stacktrace (which I didn't get/see before):\r\n```\r\n2.3.1 :001 > TestMailer.test.deliver!\r\n  Rendering test_mailer/test.html.erb\r\n  Rendered test_mailer/test.html.erb (2.6ms)\r\nTestMailer#test: processed outbound mail in 484.8ms\r\nNoMethodError: undefined method `settings' for #<Mailjet::APIMailer:0x007fb8c46cfd70>\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/mail-2.6.4/lib/mail/message.rb:255:in `deliver!'\r\n\tfrom /Users/anton/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/delegate.rb:83:in `method_missing'\r\n\tfrom (irb):1\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0/lib/rails/commands/console.rb:65:in `start'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0/lib/rails/commands/console_helper.rb:9:in `start'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:78:in `console'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:49:in `run_command!'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0/lib/rails/commands.rb:18:in `<top (required)>'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:293:in `require'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:293:in `block in require'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:259:in `load_dependency'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:293:in `require'\r\n\tfrom /Users/anton/pwork/ivan/charity/bin/rails:9:in `<top (required)>'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:287:in `load'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:287:in `block in load'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:259:in `load_dependency'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:287:in `load'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/commands/rails.rb:6:in `call'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/command_wrapper.rb:38:in `call'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:191:in `block in serve'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:161:in `fork'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:161:in `serve'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:131:in `block in run'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:125:in `loop'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application.rb:125:in `run'\r\n\tfrom /Users/anton/.rvm/gems/ruby-2.3.1/gems/spring-1.7.2/lib/spring/application/boot.rb:19:in `<top (required)>'\r\n\tfrom /Users/anton/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n\tfrom /Users/anton/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n\tfrom -e:1:in `<main>'\r\n```\r\nI see that I am not alone https://github.com/mailjet/mailjet-gem/issues/77\r\n\r\nThis is how I configure mailjet in initializers/mailjet.rb:\r\n```\r\nMailjet.configure do |config|\r\n  config.api_key = ENV['MAILJET_API_KEY']\r\n  config.secret_key = ENV['MAILJET_SECRET_KEY']\r\n  config.default_from = ENV['MAILJET_DEFAULT_FROM']\r\nend\r\n```\r\n\r\nI think you have all information now?"}}
{"actor":{"display_login":"thehappycoder"}}