mailjet / mailjet-gem

[API v3] Mailjet official Ruby GEM
https://dev.mailjet.com
Other
130 stars 72 forks source link

I'm facing the same issue with just a basic hello world email template. #240

Closed dharani-gaddam closed 1 year ago

dharani-gaddam commented 1 year ago
    I'm facing the same issue with just a basic hello world email template.
Mailjet::Send.create(messages: [{
  'From'=> {
    'Email'=> "abc@gmail.com",
    'Name'=> "abc"
  },
  'To'=> [
    {
      'Email'=> 'xyz@gmail.com',
      'Name'=> 'xyz'
    }
  ],
  'TemplateID'=> 12345,
  'Subject'=> "Test email using mailjet api",
  'TemplateLanguage'=> true,
  'Variables'=> {
    "firstname" => "xyz"
  }
}])

getting this error: NoMethodError: undefined method `include?' for nil:NilClass

Can you please check @WeshGuillaume Thanks in advance Dharani

Originally posted by @dharani-gaddam in https://github.com/mailjet/mailjet-gem/issues/62#issuecomment-1369955695

mgrishko commented 1 year ago

Fixed in https://github.com/mailjet/mailjet-gem/pull/244