mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 03:26:07 +10:00
16 lines
462 B
Ruby
16 lines
462 B
Ruby
module Emails
|
|
module AdminNotification
|
|
def send_admin_notification(user_id, subject, body)
|
|
email = recipient(user_id)
|
|
@unsubscribe_url = unsubscribe_url(email: Base64.urlsafe_encode64(email))
|
|
@body = body
|
|
mail to: email, subject: subject
|
|
end
|
|
|
|
def send_unsubscribed_notification(user_id)
|
|
email = recipient(user_id)
|
|
mail to: email, subject: "Unsubscribed from GitLab administrator notifications"
|
|
end
|
|
end
|
|
end
|