diff --git a/app/controllers/v1/contacts_controller.rb b/app/controllers/v1/contacts_controller.rb index d1e589b425c6a77f931d9036f71b966822524c5d..a39ed6d75c394704c833a67b6ce080a3b2baac75 100644 --- a/app/controllers/v1/contacts_controller.rb +++ b/app/controllers/v1/contacts_controller.rb @@ -18,6 +18,7 @@ class V1::ContactsController < ApplicationController def create @contact = Contact.new(contact_params) if @contact.save + ContactsMailer.new_contact_received(@contact).deliver_now render json: @contact, status: :created else render json: @contact.errors, status: :unprocessable_entity