Skip to content

Unsubscribe tags not working on Transactional Emails #59

@rg34

Description

@rg34

I am able to set a template and asm group id using the following: (it works great, thanks!)

mail = SendGrid::Mail.new do |m|
m.to = email_address
m.from = "Kudoso"
m.subject = ' '
m.html = " "
m.text = " "
end
header = Smtpapi::Header.new
header.add_filter('template', 'enable', 1)
header.add_filter('template', 'template_id', template_id)
header.set_asm_group(group_id)
mail.smtpapi = header
mail.template = template
client.send(mail)

However, the [unsubscribe] and [Unsubscribe_Preferences] tags in the template are not getting wired up. Instead, there is a div placed at the bottom of the email with the proper links.
Thoughts?

THANKS so much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions