Email Template Variables

Mar 22, 2021
15
2
8
47
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!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!