Please or Register to create posts and topics.

Variables missing in e-mail notifications

Our forum isn’t very active so the problem I encountered may be an older one, however I couldn’t find anything about it on the support forum. Here it is:

When a topic is started or a response is added, all subscribers do get a notification e-mail. However, only the fixed text from the template is in the e-mail and not the variables like ###author###, ###link###, etc. What could cause this? I use the latest software version.

Please help me out!
Lou

P.S.
The subject line on the e-mail is filled out correctly, but not the body.

Anyone?

For a couple of hours I once again checked all possibilities that could cause this error, but to no avail. Please help me take away my headache!

Lou

P.S.
I just saw that e-mails caused by mentioning a user do work, all placeholders are filled in correctly. Why not with new topics/answers?

Some 2 years ago I added code supplied by @asgaros to my themes function.php file to remove the content text of a new post/topic from the notification. This change was asked for by @gbr in https://asgaros.com/support/topic/notification-content/.

I now wonder if this added code is causing the malfunction after some other software change. I also would like to know if @gbr is experiencing the same problem.

TIA for any tip!
Lou

P.S.
I’ll wait some time for a response but lacking that I think I’ll take out the code added and see what happens. Hope I don’t break anything…

I removed the extra code and everything is back to normal. This code isn’t needed anymore anyway because changes can be made directly in the notification template, like not mailing the content of a new message/answer.

Lou

Hello @lou-van-wijhe

I am sorry for the late reply! You are right, that code was causing this issue and is not required anymore in recent versions. I am happy that you could solve the problem by yourself already. 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!