Method: Ingresses::Relay::InboundEmailsController#create

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

#createObject



54
55
56
57
58
59
60
# File 'actionmailbox/app/controllers/action_mailbox/ingresses/relay/inbound_emails_controller.rb', line 54

def create
  if request.body
    ActionMailbox::InboundEmail.create_and_extract_message_id! request.body.read
  else
    head :unprocessable_entity
  end
end