Gammadyne Corporation

Command-Line Control

Gammadyne Mailer can be controlled from the command-line to perform various tasks, including:

  • Run a mass mailing operation.
  • Run an incoming email processing operation.
  • Add or remove recipients from the mailing list.
  • Add email addresses to the Exclusion List.
  • Lookup a mail server (MX record).

This makes all sorts of automation and integration scenarios possible.

Uses for the Command-Line
Support for the command-line allows you to achieve time-saving automation.  For example:

  • By creating desktop shortcuts to command-lines, routine tasks can be made as simple as a mouse click.  When adding or removing a recipient, the email address can be acquired from the clipboard, or specified on the command-line.
  • Third party programs can launch a command-line in order to control Gammadyne Mailer.
  • Batch files can launch Gammadyne Mailer for a series of different send and receive operations.  For example, it is a good idea to process bounce-backs and opt-outs immediately before a new mailing is sent.
  • Windows Task Scheduler can automatically launch a command-line on a schedule.  However, it is easier to use Gammadyne Mailer's built-in scheduler.

Command-Line Overrides
When performing a Send Operation, the following settings can be overridden on the command-line:

  • From: header
  • To: header
  • Reply-To: header
  • Subject: header
  • CC: and BCC: headers
  • Text Body filename
  • HTML Body filename
  • Mailing list location
  • Database name/user/password
  • Database table or SELECT statement
  • Database WHERE clause
  • Pre-Send Script
  • Attachments

The ability to override settings can prevent the need to maintain multiple projects that only have minor differences.

Pseudo-Projects
Command-line mailings can also be initiated using a "Pseudo-Project", which contains all the information needed to perform a mailing.  Pseudo-projects are plain ASCII text, which means they can be easily generated by another program or script.  Following is an example of a pseudo-project:

From:foo@bar.com
Subject:Hello [[-FullName-]]
Expires:5/18/00 11:57:27a
Headers::
x-foo: bar
Organization: Gammadyne Corporation
@@done@@
HeaderCharset:ISO-8859-13
Recipients:
foo@bar.com
test@xxx.org
@@done@@
Exclusions::
foo2@bar.com
foo3@baz.com@@done@@
TextBody::
text body line 1
line 2
the end.@@done@@
TextBodyCharset:ISO-8859-2
TextBodyEncoding:2
LineLength:70
CanonData:1
CanonExtended:0
AutoInsertCID:1
Attachments::
[[if -Email- = "nix_a@foo.com"]] [[disregard]] [[endif]]
[[if -Index- = 1]]G:\G\System-G.txt[[endif]]
G:\G\*.log
@@done@@
DSN:1
DirectDelivery:1
DirectRetry:1
RecycleSocket:1
Database:Test
Table:Manifold Mail
RecipientColumn:email address
IdentityColumn:tid
OrderColumn:tid
SQLDateFormat:1
SentDateColumn:date sent
StoreSentDate:1
TrimData:1
FilterDate:5/17/00 2:52:14p
SMTPServerName:mail.gammadyne.com

Details
For complete details on command-lines, please go to Gammadyne Mailer and press F1 to open the help file.  From the Table of Contents, choose "Command-Line".