Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Net::SMTPFatalError:550 5.1.1拒绝的收件人地址:本地收件人表中的用户未知_Ruby On Rails_Ruby_Ruby On Rails 3_Actionmailer - Fatal编程技术网

Ruby on rails Net::SMTPFatalError:550 5.1.1拒绝的收件人地址:本地收件人表中的用户未知

Ruby on rails Net::SMTPFatalError:550 5.1.1拒绝的收件人地址:本地收件人表中的用户未知,ruby-on-rails,ruby,ruby-on-rails-3,actionmailer,Ruby On Rails,Ruby,Ruby On Rails 3,Actionmailer,当我尝试将电子邮件发送到包含action mailer的特殊字符的电子邮件id时,会出现此异常 电子邮件id就像chris_schröpfer@example.com 错误回溯 Net::SMTPFatalError:550 5.1.1:拒绝的收件人地址:本地收件人表中的用户未知 from /usr/local/lib/ruby/2.0.0/net/smtp.rb:950:in `check_response' from /usr/local/lib/ruby/2.0.0/net/smtp.rb

当我尝试将电子邮件发送到包含action mailer的特殊字符的电子邮件id时,会出现此异常

电子邮件id就像chris_schröpfer@example.com

错误回溯

Net::SMTPFatalError:550 5.1.1:拒绝的收件人地址:本地收件人表中的用户未知

from /usr/local/lib/ruby/2.0.0/net/smtp.rb:950:in `check_response'
from /usr/local/lib/ruby/2.0.0/net/smtp.rb:919:in `getok'
from /usr/local/lib/ruby/2.0.0/net/smtp.rb:862:in `rcptto'
from /usr/local/lib/ruby/2.0.0/net/smtp.rb:843:in `block in rcptto_list'
from /usr/local/lib/ruby/2.0.0/net/smtp.rb:841:in `each'
from /usr/local/lib/ruby/2.0.0/net/smtp.rb:841:in `rcptto_list'
from /usr/local/lib/ruby/2.0.0/net/smtp.rb:662:in `send_message'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/network/delivery_methods/smtp.rb:113:in `block in deliver!'
from /usr/local/lib/ruby/2.0.0/net/smtp.rb:520:in `start'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/message.rb:2129:in `do_delivery'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/message.rb:232:in `block in deliver'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/actionmailer-4.0.2/lib/action_mailer/base.rb:456:in `block in deliver_mail'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `block in instrument'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `instrument'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/actionmailer-4.0.2/lib/action_mailer/base.rb:454:in `deliver_mail'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/message.rb:232:in `deliver'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/devise-3.2.2/lib/devise/models/authenticatable.rb:173:in `send_devise_notification'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/devise_invitable-1.3.2/lib/devise_invitable/model.rb:157:in `deliver_invitation'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/devise_invitable-1.3.2/lib/devise_invitable/model.rb:126:in `invite!'
from (irb):3
from /srv/foo/shared/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands/console.rb:90:in `start'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands/console.rb:9:in `start'
from /srv/foo/shared/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:62:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'irb(main):004:0> 
from/usr/local/lib/ruby/2.0.0/net/smtp.rb:950:in'check_response'
从/usr/local/lib/ruby/2.0.0/net/smtp.rb:919:in'getok'
from/usr/local/lib/ruby/2.0.0/net/smtp.rb:862:in'rcptto'
from/usr/local/lib/ruby/2.0.0/net/smtp.rb:843:in'block in rcptto_list'
from/usr/local/lib/ruby/2.0.0/net/smtp.rb:841:in'each'
from/usr/local/lib/ruby/2.0.0/net/smtp.rb:841:in'rcptto_list'
从/usr/local/lib/ruby/2.0.0/net/smtp.rb:662:“发送消息”中
from/srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/network/delivery_methods/smtp.rb:113:in'block in deliver!'
从/usr/local/lib/ruby/2.0.0/net/smtp.rb:520:in'start'
来自/srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/network/delivery\u methods/smtp.rb:112:in“deliver!”
from/srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/message.rb:2129:in'do_delivery'
from/srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/message.rb:232:in'block in deliver'
from/srv/foo/shared/bundle/ruby/2.0.0/gems/actionmailer-4.0.2/lib/action\u mailer/base.rb:456:in'block in deliver\u mail'
from/srv/foo/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active\u support/notifications.rb:159:in'block in instrument'
来自/srv/foo/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_-support/notifications/instrumenter.rb:20:in'instrument'
来自/srv/foo/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_-support/notifications.rb:159:in'instrument'
from/srv/foo/shared/bundle/ruby/2.0.0/gems/actionmailer-4.0.2/lib/action\u mailer/base.rb:454:in'deliver\u mail'
from/srv/foo/shared/bundle/ruby/2.0.0/gems/mail-2.5.4/lib/mail/message.rb:232:in'deliver'
from/srv/foo/shared/bundle/ruby/2.0.0/gems/designe-3.2.2/lib/designe/models/authenticable.rb:173:in“发送设备通知”
from/srv/foo/shared/bundle/ruby/2.0.0/gems/designe_invitable-1.3.2/lib/designe_invitable/model.rb:157:in'deliver_invitable'
from/srv/foo/shared/bundle/ruby/2.0.0/gems/devise_invitable-1.3.2/lib/devise_invitable/model.rb:126:in'invite!'
来自(irb):3
来自/srv/foo/shared/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands/console.rb:90:in'start'
来自/srv/foo/shared/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands/console.rb:9:in'start'
来自/srv/foo/shared/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:62:in`'
从箱子/轨道:4:in“require”
从箱子/轨道:4:in`'irb(主):004:0>

错误的原因是它是一个无效的电子邮件地址。这是不允许的


有关允许的内容,请参阅此相关答案:

UMLAUT现在允许在电子邮件地址中使用。在同一线程()中搜索名为“Mason”的用户的答案。