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
14.46k stars 1.32k forks source link

Sending transactional e-mail to users who are not subscribers yet #1108

Closed jarzi25 closed 1 month ago

jarzi25 commented 1 year ago

Hi @knadh,

I was trying out the transactional e-mail API using the curl command documented here and it worked perfectly.

But when I tried to send an transactional e-mail to a user who is not a subscriber in listmonk then I started getting an error {"message":"Subscriber not found"}. I tried this to check if I can send a "Welcome" transactional e-mail to a new user who is not added as a subscriber yet.

Is it possible to send an email to a user who is not a subscriber?

Thank you.

knadh commented 1 year ago

Hi @jarzi25. You've to register the user as a subscriber first. There's a pending PR that sends messages to unregistered users, but this requires some thinking before letting unregistered e-mails be processed. For instance:

NicoHood commented 1 year ago

Is there an automated way to send a welcome message? I mean that is a very common usecase, I would appreciate that without any external API or service.

knadh commented 1 year ago

Not currently. We can consider a welcome mail feature for the next version.

NicoHood commented 1 year ago

Please! :)

les-les commented 1 year ago

I am not a big fan of a welcome message Especially when using double opt in

I m handling this a little different Because the drop out caused of an automatic send welcome message if not timed well (means that the welcome message is sent as soon as the confirmation of subscription succeeds) increases above average

Each new subscriber to the list is manually added to a Welcome campaign / list After this was send the user is removed from this welcome list... Only thing we have to handle when the user unsubscribe from the welcome list

This works pretty well (beside this unsubscribe thing of a list the user is no longer part of, when the user eg clicks on the unsubscribe link months later)

Br les

Facecube commented 6 months ago

Hi @jarzi25. You've to register the user as a subscriber first. There's a pending PR that sends messages to unregistered users, but this requires some thinking before letting unregistered e-mails be processed. For instance:

  • Templates that use subscriber attributes will be blank for unregistered e-mails and will behave differently compared to registered users.

Hello @knadh,

any update on that PR? This would be a feature I need.

Would also be happy to contribute if you could point me to that PR. The different behaviour for unsubscribed users would not be a problem for me and I also think it is reasonable for the specific properties to be unavailable.

Thanks in advance.