Class: EmailEvents::Adapters::Sendgrid::SmtpResponse

Inherits:
Abstract::SmtpResponse show all
Defined in:
lib/email_events/adapters/sendgrid/smtp_response.rb

Instance Method Summary collapse

Methods inherited from Abstract::SmtpResponse

#initialize

Constructor Details

This class inherits a constructor from EmailEvents::Adapters::Abstract::SmtpResponse

Instance Method Details

#provider_message_idObject



4
5
6
7
8
9
# File 'lib/email_events/adapters/sendgrid/smtp_response.rb', line 4

def provider_message_id
  # Status OK
  return nil unless @raw_smtp_response.status == '250'

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