Aggiunge IMAP bounce e flag email non valide nel CRM.
Permette di leggere i bounce dalla stessa MailIdentity SMTP, aggiornare le email in anagrafica e saltare gli indirizzi invalidi nei mailing. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
module Api
|
||||
module V1
|
||||
class OrganizationEmailsController < BaseController
|
||||
def update
|
||||
render_agent Crm::AgentSession.new(current_user).update_organization_email(
|
||||
params[:project_code],
|
||||
email_params
|
||||
)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def email_params
|
||||
params.permit(
|
||||
:organization_id,
|
||||
:contact_id,
|
||||
:email,
|
||||
:email_invalid,
|
||||
:bounced_email,
|
||||
:bounce_reason,
|
||||
:website,
|
||||
:activity_subject,
|
||||
:activity_description,
|
||||
:update_primary_contact
|
||||
).to_h
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user