Support

Admin Tools for WordPress

#36511 Request to add hostname placeholder to email templates

Posted in ‘Admin Tools for WordPress’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

WordPress version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Wednesday, 02 March 2022 20:17 CST

econveyors

Would it be possible to add a placeholder in AdminTools email templates for the host name?

I receive security exception emails from multiple sites I manage and to make it easier for me to filter these messages in my inbox, I have mail rules in place that filter by the domain name in the subject line. So, I end up editing the subject lines of every email template on every site to include the domain/subdomain name to work with my mailbox rules. A placeholder for the host name would be wonderful, so I can make my templates more easily copied to new sites.

An example of my customized subject line would be something like this "AdminTools (mysitedomainname.com): Security exception"

I know there's a placeholder for [SITENAME] but sometimes the site is a dev or staging copy of a production site and the site name is the same as the production site.

I'm posting this in the AdminTools for Wordpress category, but I run AT both on Wordpress and Joomla, so the placeholder would be helpful for both extensions.

nicholas
Akeeba Staff
Manager

You can always include the [URL] placeholder for the URL of your site. This includes the hostname. You can then use your mail server's filters to move the emails into specific folders instead of leaving them in the Inbox. Alternatively, you can use your mail client's filters to do the same and/or apply different labels to the email from your various sites.

Wouldn't that perform the same function as a hostname placeholder?

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

econveyors

Thank you for the suggestion. Yes, [URL] does include the hostname, but it also includes the rest of the URL which can make the subject lines longer and more cluttered to visually scan.

Hmmm, now that I'm thinking, this might work for me

  • leave subject lines as is and not add mysitedomainname.com to them
  • include [URL] in the message body somewhere
  • set my mail filtering on the domain name in the message body instead of filtering on the subject line

I'll try that

nicholas
Akeeba Staff
Manager

Yup, that's what I meant. Having the URL printed in the body would allow filtering and placement in different IMAP folders. I have found this to be more efficient than trying to scan your inbox one email at a time, especially when domains are very close. Think about www.example.com and dev.example.com in a very long list of hundreds of emails, one above the other. Chances are you'd miss the difference if scanning subject lines by sight.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.