Sha256: e511ec666bf059b0c7adf22f1c13885c2f8775dc6fdcc888f9d5153fdfe2d86a

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

module EmailEvents::Adapters
  module Sendgrid
    class SmtpResponse < Abstract::SmtpResponse
      def provider_message_id
        # Status OK
        return nil unless @raw_smtp_response.status == '250'

        @raw_smtp_response.string.match(/queued as (.+)/)[1]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
email_events-1.0 lib/email_events/adapters/sendgrid/smtp_response.rb