Email Template Variables

zadro

Member
Mar 22, 2021
15
2
8
48
zadroweb.com
I'm building a custom email template and that process is clear from searching within the forum.

However, what other variables are there to work with or any additional documentation?

For example, can the lifetime value be used to inform users when their spam will be deleted?

Thank you
 
If you're referring to the spamreport sent out to users via the pmgspamreport.timer - then this information is not available there.

AFAICS you have access to:
Code:
pmail - the primary mail-address of the user who's receiving the mail
ticket - the authentication ticket used for logging into the quarantine
managehref - the link to the quarantine
protocol - http/https (how the quarantine is accessed
host - the PMG hostname
port - the port for the quarantine access
date
fqdn - the fqdn for quarantine access
date
timespan - today/yesterday/week
items - the individual quarantined mails as array

check the source code for more details: https://git.proxmox.com/?p=pmg-api....e0ae632798b2c537acae3f50a538a875;hb=HEAD#l232

I hope this helps!
 
That is very helpful for reference on available vars.

Hope a future update includes these additional outputs:

Code:
$spamlifetime, $viruslifetime

Thank you very much.