aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb
blob: 19c3b1b2c4fcfdc3cf7c4ea2d5631850ae05406c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class ActionMailbox::Ingresses::Sendgrid::InboundEmailsController < ActionMailbox::BaseController
  cattr_accessor :username, default: "actionmailbox"
  cattr_accessor :password

  before_action :authenticate

  def create
    ActionMailbox::InboundEmail.create_and_extract_message_id! params.require(:email)
    head :no_content
  end
end