iachat/app/mailers/administrator_notifications/channel_notifications_mailer.rb
Muhsin Keloth 246deab684
feat: Instagram reauthorization (#11221)
This PR is part of https://github.com/chatwoot/chatwoot/pull/11054 to
make the review cycle easier.
2025-04-03 14:30:48 +05:30

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