method
create
v7.2.3 -
Show latest stable
- Class:
ActionMailbox::Ingresses::Postmark::InboundEmailsController
create()public
No documentation available.
# File actionmailbox/app/controllers/action_mailbox/ingresses/postmark/inbound_emails_controller.rb, line 51
def create
ActionMailbox::InboundEmail.create_and_extract_message_id! params.require("RawEmail")
rescue ActionController::ParameterMissing => error
logger.error <<~MESSAGE
#{error.message}
When configuring your Postmark inbound webhook, be sure to check the box
labeled "Include raw email content in JSON payload".
MESSAGE
head ActionDispatch::Constants::UNPROCESSABLE_CONTENT
end