Configured in the ttm__list_unsubscribe
table:
h_header — adds a header with list-unsubscribe
to the sent emails, containing an encrypted link. Clicking this link will immediately add the recipient's email
to the blocked list in this table.
h_link — adds an unsubscribe
link in the email body
. By clicking this link, the user will see an unsubscribe
button, and clicking this button will add their email
to the blocked list.
h_enable — checks if the email
is in the blocked list in the current table when sending an email. If active, the email will not be sent to the blocked address.
The presence of the header and link reduces the chance of the email being marked as Spam, but in some cases, the presence of the
list-unsubscribe
header may cause the email to be placed in the Promotions or similar folders.
These settings can also be defined through Conf.php
(in cases where SMTP settings are also set through Conf) — in this case, the settings in this table will no longer apply.
To enable through Conf.php
, open it:
nano /home/totum/totum-mit/Conf.php
Add the enablelistunsubscribe
and blockhiddencopy
parameters to the protected $SmtpData
block:
protected $SmtpData = [
'host' => 'YOUR_SMTP_HOST_HERE',
'port' => 'YOUR_SMTP_PORT_HERE',
'login' => 'YOUR_SMTP_LOGIN_HERE',
'pass' => 'YOUR_SMTP_PASS_HERE',
'enablelistunsubscribe' => true,
'blockhiddencopy' => true
];
enablelistunsubscribe — enables h_header
and h_link
for all schemes.
blockhiddencopy — blocks the hiddencopy
parameter of the emailSend function for all schemes.