Skip to Content Skip to Menu

[#7752] Variable substitution in new user email subject

4 years 10 months ago - 4 years 10 months ago #315064 by mikeprince
I have tried to do a variable substitution in the new user email that gets sent to an administrator, by using
'UE_REG_ADMIN_SUB' => 'New User Registration: [NAME]',

However, no substitution occurs and that is the exact mail subject given. Should substitutions work here?

I would find this useful to quickly highlight spam registrations that I might then need to ban immediately.

Ideally also the email body itself would have a link in it so that I could do this on one click, e.g.

Name: [NAME]
Email:

Cheers
-- Mike --

Record, share and compare with BUBO Listing at www.bubo.org
Last edit: 4 years 10 months ago by krileon. Reason: Added [#7752] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48314
  • Thanks: 8253
  • Karma: 1443
4 years 10 months ago #315076 by krileon
Substitutions should be lowercase. The exception is a few special ones specifically used for registration emails. So for example you'd use [name] instead of [NAME]. Yes, they should work fine in the email subject and body.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

4 years 10 months ago #315077 by mikeprince
Replied by mikeprince on topic Variable substitution in new user email subject
I have various substitions in the email body which work in uppercase, including [NAME], but in the subject neither [NAME] nor [name] work.This is in the admin new user registration email at least.

Cheers
-- Mike --

Record, share and compare with BUBO Listing at www.bubo.org

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48314
  • Thanks: 8253
  • Karma: 1443
4 years 10 months ago #315078 by krileon
Ah, I see the issue. Email subject for moderators isn't being passed through substitutions. Have added a bug ticket to fix.

forge.joomlapolis.com/issues/7752


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

4 years 10 months ago #315079 by mikeprince
Replied by mikeprince on topic Variable substitution in new user email subject
Ah, ok, thanks for raising that.

Cheers
-- Mike --

Record, share and compare with BUBO Listing at www.bubo.org

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

Moderators: beatnantkrileon
Powered by Kunena Forum