dog*_*unk 138
两种方式:
class Notifications < ActionMailer::Base
default :from => 'your_app@your_domain.com',
:reply_to => 'some_other_address@your_domain.com'
end
Run Code Online (Sandbox Code Playgroud)
要么:
class Contacts < ActionMailer::Base
def new_contact
mail( :to => 'somebody@some_domain.com',
:from => 'your_app@your_domain.com',
:reply_to => 'someone_else@some_other_domain.com')
end
end
Run Code Online (Sandbox Code Playgroud)
或者你可以混合使用这两种方法.我相信还有更多方法可以做到这一点.
归档时间: |
|
查看次数: |
20950 次 |
最近记录: |