added bcc emails
This commit is contained in:
parent
3bd2ad8590
commit
c1bff71c05
|
@ -408,7 +408,9 @@ class Admin::AsksController < OrbitAdminController
|
||||||
email_er.email_id = email.id
|
email_er.email_id = email.id
|
||||||
email_er.save
|
email_er.save
|
||||||
|
|
||||||
@group_mail = email_er.mail
|
@group_mail = []
|
||||||
|
@group_mail << email_er.mail
|
||||||
|
@group_mail = @group_mail + email_er.bcc_emails.split(",")
|
||||||
@mail_sentdate = DateTime.now
|
@mail_sentdate = DateTime.now
|
||||||
|
|
||||||
site = Site.first
|
site = Site.first
|
||||||
|
|
|
@ -20,6 +20,7 @@ class AskQuestion
|
||||||
|
|
||||||
field :reply, type: String
|
field :reply, type: String
|
||||||
field :comment, type: String
|
field :comment, type: String
|
||||||
|
field :bcc_emails, type: String
|
||||||
field :situation, type: String, default: "is_email_not_confirmed" # 預設email未驗證
|
field :situation, type: String, default: "is_email_not_confirmed" # 預設email未驗證
|
||||||
field :send_email, type: Integer, default: 0
|
field :send_email, type: Integer, default: 0
|
||||||
field :email_id
|
field :email_id
|
||||||
|
|
|
@ -158,6 +158,12 @@
|
||||||
<%= f.text_area :reply, rows: 10, style: 'max-width: 500px; width: 100%;' %>
|
<%= f.text_area :reply, rows: 10, style: 'max-width: 500px; width: 100%;' %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<%= f.label :bcc_emails, class: "control-label muted" %>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.text_area :bcc_emails, rows: 5, style: 'max-width: 500px; width: 100%;' %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label muted"><%= f.label :comment %></label>
|
<label class="control-label muted"><%= f.label :comment %></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
|
@ -119,6 +119,7 @@ en:
|
||||||
exports: Export
|
exports: Export
|
||||||
reply: Reply
|
reply: Reply
|
||||||
reply_success: Reply success
|
reply_success: Reply success
|
||||||
|
bcc_emails: BCC
|
||||||
to: To
|
to: To
|
||||||
widget:
|
widget:
|
||||||
index: Form
|
index: Form
|
||||||
|
|
|
@ -127,6 +127,7 @@ zh_tw:
|
||||||
exports: 匯出
|
exports: 匯出
|
||||||
reply: 問題回覆
|
reply: 問題回覆
|
||||||
reply_success: 回覆成功
|
reply_success: 回覆成功
|
||||||
|
bcc_emails: 郵件密件副本
|
||||||
to: 至
|
to: 至
|
||||||
yes: 是
|
yes: 是
|
||||||
no: 否
|
no: 否
|
||||||
|
|
Loading…
Reference in New Issue