Method: Ingresses::Sendgrid::InboundEmailsController#create

Defined in:
actionmailbox/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb

#createObject



51
52
53
54
55
56
# File 'actionmailbox/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb', line 51

def create
  ActionMailbox::InboundEmail.create_and_extract_message_id! mail
rescue JSON::ParserError => error
  logger.error error.message
  head :unprocessable_entity
end