Class: LiveCallRouting::Twilio::V3Mailer

Inherits:
ApplicationMailer
  • Object
show all
Defined in:
app/mailers/pager_tree/integrations/live_call_routing/twilio/v3_mailer.rb

Instance Method Summary collapse

Instance Method Details

#call_recordingObject

Subject can be set in your I18n file at config/locales/en.yml with the following lookup:

en.live_call_routing.twilio.v3_mailer.call_recording.subject


8
9
10
11
12
13
14
15
# File 'app/mailers/pager_tree/integrations/live_call_routing/twilio/v3_mailer.rb', line 8

def call_recording
  @recording_url = params[:recording_url]
  @alert = params[:alert]
  @email = params[:email]
  @from = params[:from]

  mail(to: @email, subject: I18n.t("pager_tree.integrations.live_call_routing.twilio.v3_mailer.call_recording.subject", tiny_id: @alert.tiny_id, from: @from))
end