0
我已經在我的郵件如下:我怎麼可以設置郵件主機,所以我可以通過用戶一個用於生產,一個用於開發的Rails
#activate board first using a different email?
def welcome_manager(participant)
@participant = participant
@user = participant.user
@board = participant.board
@url = birthday_url(@participant.token, :host => "birthday-greeting.net")
mail(:to => @user.email, :subject => "Confirmation: #{@board.bp_name.possessive} Happy Birthday Board Created")
end
哪些在線使用的主機。 然而,當我在開發我想使用localhost:3000,如下所示:
#activate board first using a different email?
def welcome_manager(participant)
@participant = participant
@user = participant.user
@board = participant.board
@url = birthday_url(@participant.token, :host => "localhost:3000")
mail(:to => @user.email, :subject => "Confirmation: #{@board.bp_name.possessive} Happy Birthday Board Created")
end
我怎樣才能做到這一點?
感謝布里克什麼 – chell