justingit / dada-mail

Self-Hosted, Full Featured, Email Mailing List Manager. Announcement + Discussion Lists, Web-based Installer, Installs with minimal dependencies, sendmail/SMTP/Amazon SES supported
https://dadamailproject.com
GNU General Public License v2.0
169 stars 40 forks source link

Use From: header data in template tags #1148

Open justingit opened 1 year ago

justingit commented 1 year ago

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

cbgdev commented 1 year ago

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.

justingit commented 1 year ago

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 -->
cbgdev commented 1 year ago

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.