Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Option to remove or alter sitename prefix from email subjects

10 years 1 month ago #253327 by nvanadrichem
Currently the subject of all CB system notifications and mass emails are prefixed by the sitename followed by a dash.
For example, the pending sign-up request looks as follows:
"My Site Name - Your sign up request is pending approval"

As our sitename is rather large and embedded in the name of the sender, this is redundant for us to send with every email (especially if you send a mass email, as you edit the subject on the fly).
Hence, it would be convenient if this became optional and/or editable by CB configuration or instead set equal to the Joomla->Users Manager->Mass Mail->Subject Prefix option (if exists, else omitted).

For now, we removed the following line from /libraries/CBLib/CB/Legacy/cbNotification.php:
$subject = $_CB_framework->getCfg( 'sitename' ) . ' - ' . $subject;
But this introduces manual work at updates.

In order to set it equal to the Joomla Mass Mail Subject Prefix, which should be the easiest to do, I think you could use key 'mailSubjectPrefix' in getCfg() and test it to see if it is empty before adding the ' - ', but I have not tried it myself.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum