LoginSignup
1
1

More than 5 years have passed since last update.

herokuのSendGridでclicktrackingを無効にできない時は直接heradersに設定するとOFFにできる

Posted at

herokuのアドオンで使えるSendGridは何故かClickTrackingの設定が出てこない。
解決方法としてSendGridのX-SMTPAPIで直接設定することでclicktracking設定をoffにすることができる。
こんな感じで。

application_mailer.rb
class ApplicationMailer < ActionMailer::Base
  default \
    'X-SMTPAPI': { filters: { clicktrack: { settings: { enable: 0 } } } }.to_json
end

参考:
https://sendgrid.com/docs/API_Reference/SMTP_API/apps.html

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1