You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb/app/mailers/organization_mailer.rb

36 lines
1.1 KiB

class OrganizationMailer < ActionMailer::Base
default from: Cartodb.get_config(:mailer, 'from')
layout 'mail'
def quota_limit_reached(organization)
@organization = organization
@subject = "Your organization #{@organization.name} has reached its quota"
@link = "mailto:support@carto.com"
mail to: @organization.owner.email,
subject: @subject
end
def invitation(invitation, email)
@invitation = invitation
@subject = "You are invited to join the #{@invitation.organization.name} organization at CARTO #{@invitation.viewer? ? 'as a viewer' : ''}"
base_url = CartoDB.base_url(@invitation.organization.name)
token = invitation.token(email)
@invitation_signup_link = "#{base_url}#{CartoDB.path(self, 'signup', invitation_token: token, email: email)}"
mail to: email, subject: @subject
end
def seat_limit_reached(organization)
@organization = organization
@subject = "Your organization #{@organization.name} has reached its seat limit"
@link = "mailto:support@carto.com"
mail to: @organization.owner.email,
subject: @subject
end
end