listmonk icon indicating copy to clipboard operation
listmonk copied to clipboard

Add support for functions to transactional email templates

Open peterjcarroll opened this issue 2 years ago • 2 comments
trafficstars

I would like to be able to use the functions listed in the documentation at https://listmonk.app/docs/templating/#functions in my templates for transactional emails.

I am especially interested in using TrackLink, TrackView, and UnsubscribeURL.

I saw in issue #1409, you felt that unsubscribe urls don't apply to transactional emails, but it my case they do. I'm sending transactional emails to my mailing list users via the API because Listmonk doesn't support sending an email triggered by a new subscription.

I also know that normally the unsubscribe link has the campaign uuid in the url, but in the opt-in emails, the unsubscribe link just uses a uuid of all zeros instead of a campaign uuid. The unsubscribe url for transactional emails could be done the same way.

Thanks for your hard work on Listmonk!

peterjcarroll avatar Nov 17 '23 14:11 peterjcarroll

I was about to request the same thing when I discovered that the URL {{ RootURL }}/subscription/{{ .Subscriber.UUID }}/{{ .Subscriber.UUID }} works and I used it to unsubscribe from a system email.

P.S.: I'm new to listmonk, and I haven't tested this in a transactional email.

javierarce avatar Nov 27 '23 20:11 javierarce

This is usefull in a way things like TrackLink would be usefull for transactional emails

AmurgCodru avatar Apr 29 '24 10:04 AmurgCodru

This issue has been marked 'stale' after 90 days of inactivity. If there is no further activity, it will be closed in 7 days.

github-actions[bot] avatar Jul 29 '24 01:07 github-actions[bot]