mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
11 lines
288 B
Ruby
11 lines
288 B
Ruby
class ApplicationMailer < ActionMailer::Base
|
|
append_view_path Rails.root.join('app', 'views', 'mailers')
|
|
default from: 'noreply@internet.ee'
|
|
layout 'mailer'
|
|
|
|
def format(email)
|
|
local, host = email.split('@')
|
|
host = SimpleIDN.to_ascii(host)
|
|
"#{local}@#{host}"
|
|
end
|
|
end
|