dada-mail icon indicating copy to clipboard operation
dada-mail copied to clipboard

Use From: header data in template tags

Open justingit opened this issue 3 years ago • 3 comments

Perhaps there should a way to use the header phrase value in the message itself (we're thinking discussion lists) via template tags.

justingit avatar Apr 17 '23 22:04 justingit

That would be fantastic!

Alternatively, for closed discussion lists, the sender will be on the subscriber list. Hence, it would be great if the template could access their profile field info.

cbgdev avatar Apr 18 '23 06:04 cbgdev

Alternatively, for closed discussion lists, the sender will be on the subscriber list. Hence, it would be great if the template could access their profile field info.

I want to say that should be possible now. The default From Header Phrase already uses,

<!-- tmpl_var subscriber.email -->

justingit avatar Apr 18 '23 14:04 justingit

But in the email template, subscriber.email will parse as the recipient's information.

The objective is to include information about the sender in the email body of the message that goes to the discussion list.

For a private discussion list, I would see the workflow as follows:

  1. Dadamail receives incoming message
  2. Sender must be a subscriber to the list, hence Dadamail can fetch profile information from the database
  3. Dadamail parses template tags for sender and recipient (both coming from the subscriber database)
  4. Done.

cbgdev avatar Apr 18 '23 15:04 cbgdev