Macros are not resolved in Send-Email Action

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
baschuel
Posts: 17
Joined: Tue Jul 02, 2002 6:00 pm

Post by baschuel »

Hi!

When i use macros like %server% or %test% in the subject Line of the Action properties of an "send e-mail" action, the macro is not resolved in the e-mail i get from hostmonitor.
The Macros in the E-Mail Body are resolved well!

Thx for help!

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

Post by KS-Soft »

Probably you use wrong macros. HostMonitor does not support %server% and %test" macros. There are list of macro variables: http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro

Regards
Alex
baschuel
Posts: 17
Joined: Tue Jul 02, 2002 6:00 pm

Post by baschuel »

Dear Alex!

I fixed the problems in the subject-line by using the "right" macros :smile:

But I have still the problem with the "from"-field! When i use there the macro %HostName% or %TestName% for example, the macros are not resolved in the email i get! So i get a message from %TestName%!

Is there anything else i make wrong? Or is this a bug and you can fix it?

Thx and regards
Bastian
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Its not a bug. HostMonitor does not support macro variables in "From" field.
Are you realy need this? Some SMTP servers will not accept mail if you specify address that does not exist. You can use macro variables in Subject line, in the mail's body, and as destination address.

Regards
Alex
baschuel
Posts: 17
Joined: Tue Jul 02, 2002 6:00 pm

Post by baschuel »

Hi!

It would make it easier to work with a lot of Tests and Clients to automate the email-traffic with LN-Agents for example!

Then i have the possibility to say: if the sender of the email, then start this script!
Because the destination mailbox is not only for use with HostMonitor. We use it for our filer(netapp) too. And the agents in the mailbox works there with the "from" field!

Is this a problem to add this in HostMonitor?

Thx and regards
Bastian
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Done. There is update http://www.ks-soft.net/download/hm323a.zip

Regards
Alex
baschuel
Posts: 17
Joined: Tue Jul 02, 2002 6:00 pm

Post by baschuel »

Great!

Thx a lot!

regards
Bastian
Locked