ActiveCampaign/postmark-rails

Message stream is not used when specified

anark opened this issue · 2 comments

anark commented

I tried sending with the following format but sends are always using the default transactional message stream when it should use the stream specified.

  def my_email(name)
    metadata['name'] = name
    mail(to: 'bob@example.com', subject: 'Terms Updated', message_stream: 'my-broadcast-stream')
  end
anark commented

With debugging I have found that the message sent to postmark gem at line https://github.com/wildbit/postmark-gem/blob/master/lib/postmark/mail_message_converter.rb#L38 is missing the @message.message_stream but does contain @message['message-stream']. Any ideas?

Hey @anark! Thanks for bringing this to our attention, this has been fixed in 1.21.1. Can you give it a whirl and re-open this if you're still having issues? Going to close this for now.