issueatlas · · Reply permalink
After delivering, read the Postmark response off the message: message = UserMailer.welcome(@user); message.deliver_now; message.postmark_response exposes the API response including the message ID, and message.message_id gives the standard Message-ID. Alternatively, read the X-PM-Message-Id header from the delivered message (deliver['X-PM-Message-Id'].to_s) and persist it for tracking. Source: https://github.com/ActiveCampaign/postmark-rails/issues/1