FCommentLine Issue @ Bginning of Email Subject

When you post information about some problem, please include the following details: - OS version (e.g. Windows 2000 Professional SP3); HostMonitor version; problem description.
Post Reply
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

FCommentLine Issue @ Bginning of Email Subject

Post by xcentric »

Im trying to use the FCommentLine macro insude an email template subject. I also apend a few other macros. The FCommentLine contains the location name for the entire folder.

When the email is sent only the FCommentLine resolves in the subject.
If I place the FCommentLine at the end of the subject line after the other macros then all the macros resolve correctly.

It does not wont work when placed at the beginning where I would like it.

When the realtime email window pops up, you can see the subject line. What I can see is all the macros set for the folder resove even though I only specify one FCommentLine. So the pop up subject will look like this with the macros FCommentLine and FCommentLine2 are jammed together.

Data Centeradmin@domain.com

I know the macro is not in the list but it works sort of.

Regards
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

FCommentLine Issue @ Bginning of Email Subject

Post by KS-Soft Europe »

What HostMonitor version do you use ?
There is no %FCommentLine% variable.
Folder comments can be retrieved, using two kinds of macro-variables:
- %FolderComment% represent entire folder's comment (comment lines separated by CRLF)
- %FCommentLineNN% (%FCommentLine1%, %FCommentLine2%, %FCommentLine3% e.t.c) returns a line #NN of a folder`s comment
I think, you should use %FCommentLine1% macro-variable in e-mail subject.

All Folder-related macro variables you may find at:
http://www.ks-soft.net/hostmon.eng/mfra ... oldermacro
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

You are right once again. I should have caught that.

I was using FolderComment instead of FCommentNN. It does work. I am a bad bad man. :oops:

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No problem :wink:

Regards
Alex
Post Reply