How to dynamically set unsubscribe link in sendgrid using ruby on rails
问题 I am using sendgrid for sending mails. There are around 20 mail templates. I have set unsubscribe template in the settings of sendgrid app "Subscription Tracking" . My requirement is different texts for unsubscribe link for different mail templates. Currently, only one static unsubscribe link as set in the sendgrid app "Subscription Tracking" is coming. Can any one help me how to dynamically set the unsubscribe link in my user_mailer class. I followed this link To give unsubscribe link in the