Closed tyrauber closed 8 years ago
Disregard. I had created an ActiveMailer Interceptor to set the mailgun_reciepient_variables and the class wasn't getting loaded in production. As long as mailgun_reciepient_variables is present, mailgun will overwrite the to attribute.
I am trying to send bulk emails through mailgun using this gem, following the example here. While the recipient_variables are present and are inserted into the page content, the to field lists all recipients, which isn't my desired or expected behavior.
I tried sending an email with out mail to and only setting the recipient_variables, but I recieve the error:
NoMethodError: undefined method
formatted' for nil:NilClass mailgun_rails-0.8.0/lib/mailgun/deliverer.rb:48:inbuild_basic_mailgun_message_for
Any suggestion for sending bulk email with a singular to recipient?