如何在cusotmer.io消息中呈现rails模板

时间:2017-10-26 05:16:06

标签: ruby-on-rails actionmailer

我正在定制设计确认邮件并通过customer.io发送。在customer.io中,我需要在消息页面中设置confirmation.html.erb。

customerio = Customerio::Client.new(customerio["site_id"], customerio["api_key"],:json => false)
customerio.track(2,
  "samplemailer",
  sender_name: "rubyonrailsdeveloper.com",
  sender_email: "sample@sample.com",
  subject: "asfadsfsd",
  to: "sample1@yopmail.com",
  body: message)

0 个答案:

没有答案