• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How to include the forum name in the mail subject

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have create a multiple forums Routers , Switches , Firewall under a Category : Devices.

Whenever a topic is posted in any of the forum a mail is triggered with subject line as "New Topic: How to store certificate .."

My requirement is to have the mail subject as "[Routers]:How to store certificate .."

Like wise any topic posted under Firewall should have mail subject as "[Firewall]:How to configure...."

Is there any place where I can configure the same so that Jforum detects the forum name automatically and populates in the subject field

Thanks
Udaya
[originally posted on jforum.net by stg]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
E-mail messages are created using the mail template files. I'm not sure if the template context has a forum object or not included. But you could try adding a ${forum.name} in the template where you need it.

If that doesn't work, you'll need to modify the various "Spammer" classes in the net.forum.util.mail package to add this / change the subject.
[originally posted on jforum.net by monroe]
 
What's a year in metric? Do you know this metric stuff tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic