2013-10-04 45 views
0

如何在郵件程序中更改電子郵件from選項,以便在收到電子郵件時應根據更改的值顯示而不是電子郵件地址。在rails3的郵件程序中優化``from`選項值

class EnquiryMailer < ActionMailer::Base 
    default from: "My Test web" 

    def reply_email(email,enq_subject,description) 
    @reply_description = description 
    mail(to: email, subject: "Reply from my test web for Enquiry :: #{enq_subject}") 
    end 

end 

但這顯示電子郵件地址從From field 我想My Test Web,但沒有得到這個場域

回答