Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现我所有的UserMailer功能都发送邮件到user.email,我正在寻找一种将其设置为默认值的方法,以前有人尝试过或想过类似的黑客攻击吗?
UserMailer
user.email
一般来说,我所拥有的不是我所有的邮件程序类都继承ActionMailer::Base,而是用我的通用邮件程序类继承它们,该类继承了 ActionMailer
ActionMailer::Base
您可以在default :to 其中指定将用于所有邮件类的..
default :to