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>
25 lines
460 B
Ruby
25 lines
460 B
Ruby
module Api
|
|
module V1
|
|
class MailBouncesController < BaseController
|
|
def index
|
|
render_agent Crm::AgentSession.new(current_user).check_mail_bounces(
|
|
params[:project_code],
|
|
bounce_params
|
|
)
|
|
end
|
|
|
|
private
|
|
|
|
def bounce_params
|
|
params.permit(
|
|
:mail_identity_id,
|
|
:from_email,
|
|
:since_days,
|
|
:mailbox,
|
|
:limit
|
|
).to_h
|
|
end
|
|
end
|
|
end
|
|
end
|