• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How to include the forum name in the mail subject

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • 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
  • 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]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!