[英]When emailing many recipients, access email of the current recipient in mailer view
[英]Rails 4 ActionMailer : is it possible to check the current mail recipient in the mailer view
我正在使用bcc:選項發送郵件,並且我希望在基於郵件的郵件視圖中包含一個條件。 就像是
<% unless current_recipient is bcc email %>
text/links to display
<% end %>
當to:或bcc:郵件方法選項中有很多選項時,是否可以檢查當前收件人值?
謝謝
顯然這是不可能的。 從IRC渠道收集到以下答案:“不,那不可能……當您發送帶有密件抄送選項的電子郵件時,您僅發送一封電子郵件,而SMTP服務器負責將其發送給雙方(使用密件抄送)地址得到適當處理)”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.