Mailtraq Startup Script

This forum is for discussing Mailtraq's Scripting features. Get help with Mailtraq scripts, templates and external ActiveX scripting.

Mailtraq Startup Script

Postby borpin » Tue Nov 27th, 2007 6:26pm

How do I create a script that sends an email when the mailtraq service starts? I have a feeling the service stops for some reason and I want to know each time it restarts.

Cheers
borpin
 
Posts: 38
Joined: Mon Oct 08th, 2007 3:49pm

Re: Mailtraq Startup Script

Postby apurdam » Tue Nov 27th, 2007 10:55pm

You can also look in the system event log (Control Panel | Administrative Tools | Event Viewer | System) and search for mailtraq in the description (View | Find | Description).
The list will give you the times, or you can double click the event to make sure of what you are looking at.
You can export the whole list, too, if you want to use Excel or similar to filter and view the events.
HTH.
User avatar
apurdam
Expert User
 
Posts: 495
Joined: Thu Apr 19th, 2007 10:57pm
Location: Canberra

Re: Mailtraq Startup Script

Postby jimhill » Wed Nov 28th, 2007 4:55am

borpin wrote:How do I create a script that sends an email when the mailtraq service starts? I have a feeling the service stops for some reason and I want to know each time it restarts.
It's much easier to search through Mailtraq's log files. Here's my last restart ...
Code: Select all
00010000 00000000 01/11/2007 01:53:43 Configuration Loaded / Logging Started: Build 2.10.0.2176

If you have a good text editor, you should be able to search through the contents of files easily - in textpad, that's Ctrl+F5. Alternatively, run one of the log report scripts [url]http://www.rdns.org/mailtraq/logs/[/url] For example, the above was reported as
Code: Select all
Analysing c:\log\mailtraq\2007-11-01-mtq.log -- 26972 lines

ADMIN: Mailtraq restart -- 1
   01:53:43 - Build 2.10.0.2176
jimhill
Expert User
 
Posts: 337
Joined: Sun Dec 19th, 2004 9:59pm
Location: UK


Return to Mailtraq Scripting

Who is online

Users browsing this forum: No registered users and 1 guest