knadh / listmonk

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
https://listmonk.app
GNU Affero General Public License v3.0
15.34k stars 1.4k forks source link

Support for sending transactional emails to a list #2048

Open cgrbyk opened 2 months ago

cgrbyk commented 2 months ago

I want to be able to send transactional emails to a list(email list). /api/tx can accept a list id and then send transactional email to every subscriber in that list.

This can be workaround by querying subscribers by a list id and putting all subscriber ids to "subscriber_ids" that is in the POST /api/tx but having native support would be nice.

I can try to create a pr for this if anyone else needs this. but I never write in go before FYI.

roozbehk commented 1 month ago

this would be great

knadh commented 1 month ago

@cgrbyk the tx API, by definition, is meant to be transactional/atomic, ideally aimed at one recipient. The array support is there, just in case. Sending tx e-mails to a large number of subscribers, not sure if that can be considered "transactional" anymore, and of course, internally, it then requires the full concurrent+batch processing engine to deliver messages, which is what the campaign manager does.

Might as well just create a temp list out of a query and create a campaign against that temp list?