This PR is part of https://github.com/chatwoot/chatwoot/pull/11054 to make the review cycle easier.
22 lines
772 B
Ruby
22 lines
772 B
Ruby
class AdministratorNotifications::ChannelNotificationsMailer < AdministratorNotifications::BaseMailer
|
|
def facebook_disconnect(inbox)
|
|
subject = 'Your Facebook page connection has expired'
|
|
send_notification(subject, action_url: inbox_url(inbox))
|
|
end
|
|
|
|
def instagram_disconnect(inbox)
|
|
subject = 'Your Instagram connection has expired'
|
|
send_notification(subject, action_url: inbox_url(inbox))
|
|
end
|
|
|
|
def whatsapp_disconnect(inbox)
|
|
subject = 'Your Whatsapp connection has expired'
|
|
send_notification(subject, action_url: inbox_url(inbox))
|
|
end
|
|
|
|
def email_disconnect(inbox)
|
|
subject = 'Your email inbox has been disconnected. Please update the credentials for SMTP/IMAP'
|
|
send_notification(subject, action_url: inbox_url(inbox))
|
|
end
|
|
end
|