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