如何更改邮件程序中的电子邮件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
但在 From 字段中没有得到它