加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Gmail不会检测到回复字段

发布时间:2020-12-16 20:28:48 所属栏目:百科 来源:网络整理
导读:我的FeedbackMailer中有以下设置. def notification(feedback) from "admin@gmail.com" subject "Some feedback" recipients "admin@gmail.com" reply_to feedback.creator.email body({ :feedback = feedback }) content_type "text/html"end 我正在使用adm
我的FeedbackMailer中有以下设置.
def notification(feedback)

  from       "admin@gmail.com"
  subject    "Some feedback"
  recipients "admin@gmail.com"
  reply_to   feedback.creator.email
  body({ :feedback => feedback })
  content_type "text/html"
end

我正在使用admin@gmail.com帐户发送此应用的电子邮件.电子邮件完美交付.当我收到邮件的详细信息后,我看到如下:

from     "admin@gmail.com"
reply-to "user_email@foo.com"
to       "admin@gmail.com"

现在,当我按gmail界面中的回复按钮时,to字段现在应该有“user_email@foo.com”,但是它有“admin@gmail.com”.我做错了什么或Gmail是吗?

解决方法

正如 thread Waseem在评论中指出的.

Gmail ignores the reply-to when the
From is one of your configured send-as
addresses in gmail. I don’t know why.

我以此提示,并通过user_email@foo.com取代了From电子邮件字段,并添加了相同的user_email@foo.com作为回复地址. Gmail现在正确使用“回复”字段.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读