diff --git a/app/models/dmail.rb b/app/models/dmail.rb index e1c2c6df1..c363cc0f5 100644 --- a/app/models/dmail.rb +++ b/app/models/dmail.rb @@ -193,7 +193,7 @@ class Dmail < ActiveRecord::Base end def send_dmail - if to.receive_email_notifications? && to.email.include?("@") && owner_id == to.id + if to.receive_email_notifications? && to.email =~ /@/ && owner_id == to.id UserMailer.dmail_notice(self).deliver_now end end