Preparing an Event Action to send emails (Windows)

From TDiWiki

Jump to: navigation, search

There is no native Windows command line interface to email that will actually send an email without manual intervention. ConsoleWorks Actions require this functionality. To overcome this problem on Windows, it is necessary to install a command line based email sender.

One of the most commonly used command line email senders on Windows is a public domain application called Blat. Blat is available for download at http://www.blat.net/.

Unzip the downloaded file. From inside the unzipped directory (probably blat262.full) take the directory blat262 and place it in C:\Program Files\.

Before proceeding further, gather the following information:

  • the IP address or fully qualified domain name of your SMTP mail server
  • a username that you want to use as the SENDER of email from ConsoleWorks
  • the fully qualified DNS name to be used in the FROM address of email

Note that you may need to discuss “relayed email” with your email server administrator and insure that the email system is configured to accept relayed email from the ConsoleWorks server machine.

From a Command Prompt (run CMD) change your directory to C:\Program Files\blat262\full and type the following command:

blat -install smtp.yoursite.tld  senderusername@fully.qualified.from.address

Use the data you gathered earlier to fill in the smtp.yoursite.tld, senderusername and fully.qualified.from.address.

There is more detailed documentation in the C:\Program Files\Blat262\doc directory.

Obtain a copy of the example Action called SIMPLEMAIL.BAT from the TDI wiki or from TDI support at support@tditx.com. Modify this .BAT file as necessary for your site and place the Action in the following directory:

C:\Program Files\TDi\ConsoleWorks Server\Default\Actions\Event

This action is now available for association with Events inside ConsoleWorks. Put the destination email address (which may be a mailing list) in the Contact field of the Action association.

For more information, see the wiki article, Example of creating an Email Automatic Action on the Windows Platform, and the ConsoleWorks Help on the EVENTS: Edit page.

Personal tools