KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Email agent with variable attachment name

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
adam_morris



Joined: 25 Nov 2004
Posts: 30

PostPosted: Sun Jul 15, 2007 10:51 am    Post subject: Email agent with variable attachment name Reply with quote

I want to email out a report each month to a number of clients. The report will be automatically generated using the script functionality and using a variable of %mmyy% new reports will be created each month.

The problem I have is emailing these attachments out. I created a job with good action of emailing out with the attachment using the variable name but I get:

Error: Attachment file not found (C:\Host Monitor Reports\F1%mmyy%.htm)

Your documentation suggests this should work. Your help is appreciated.
Adam
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Sun Jul 15, 2007 12:46 pm    Post subject: Re: Email agent with variable attachment name Reply with quote

adam_morris wrote:
Error: Attachment file not found (C:\Host Monitor Reports\F1%mmyy%.htm)
You should use the following expression to make it work:
Code:
C:\Host Monitor Reports\F1%mm%%yy%.htm

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
adam_morris



Joined: 25 Nov 2004
Posts: 30

PostPosted: Mon Jul 16, 2007 2:48 am    Post subject: Reply with quote

Thanks - that did the trick.

The other problem I have now is that the report (Log analyzer) contains gif images for the graphs in a sub folder which are not of course sent through with the *.htm report.

Other than setting up a link to a web page (which I would prefer not to do), are there any other automated ways around this?
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Mon Jul 16, 2007 4:09 am    Post subject: Reply with quote

adam_morris wrote:
Other than setting up a link to a web page (which I would prefer not to do), are there any other automated ways around this?
Probably, the best way is to copy the reports into the some folder, that is accessible via web interface and place a link to the report ito the mail body. However, you may try the following solution. You may use some command line compress utility, like zip.exe to compress all reports files (*.htm and *.gif) into single package and specify this zipped package as an attachment for the "Send email" action. To aply such funnctionality, you have to create a *.bat file, that should start Log Analyzer's script to create a report and start a zip.exe (or other) utility to compress all report files into single package, with date variables in its name. You may shedule "Execute External program" action to start foregoing .bat file using built-in "Scheduler" ("Options" -> "Scheduler")

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index