A.4 SMTP Mail Utility

The NetIQ Corporation SMTP mailer program, NetIQSMTPMail.exe, is a command-line program used to send SMTP mail messages.

The basic syntax for the NetIQSMTPMail.exe program is:

NetIQSMTPMail -tRecipients [-sSubject] [-fFrom] [-mMessage]
[-hHost:Port] [-rFilename]

Use quotation marks around the entire parameter string if any information you specify contains blank spaces. For example, if you are specifying the subject line and using spaces between words, you would enclose the entire string in quotation marks similar to this:

NetIQSMTPMail -tsmith@xyz.com -s"This is a test mail message" -fjones@abc.com -hmailcenter:800 ‑rC:\Temp\NewsReport.txt

The program supports the following options:

Option

Description

-t Recipients

Specifies the e-mail address of each individual you want to receive the report, using the format:

recipient@domain

For example:

-tIT_Admin@ajuba.com

Separate names of multiple recipients by commas.

-s Subject

Specifies the text to use in the Subject line of the message.

-f From

Specifies the sender identified in the From line of the message.

-m Message

Specifies the body of the mail message.

-h Host:Port

Specifies the SMTP mail server hostname and, optionally, the port number on the server to use.

-r Filename

Specifies the full path to a file to attach to the message.