mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Added email pynicode support #2884
This commit is contained in:
parent
1b501dd053
commit
84d8b54c69
5 changed files with 48 additions and 13 deletions
|
@ -23,4 +23,10 @@ class ApplicationMailer < ActionMailer::Base
|
|||
"BY MODEL OBJECT: id ##{model.try(:id)} deliver_emails returned false"
|
||||
true
|
||||
end
|
||||
|
||||
def format(email)
|
||||
local, host = email.split('@')
|
||||
host = SimpleIDN.to_ascii(host)
|
||||
"#{local}@#{host}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue