• 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
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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]
 
Your mother was a hamster and your father was a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic