SmartSendMail Command Line Syntax

[Path]SmartSendMail To=<To>   From=<From>   Subject=<Subject>   FileName1=<FileName1>   Server=<Server>   BodyFileName=<BodyFileName>  Type=<html or text>  

Important:  Any parameter that has spaces in it must be enclosed in double-quotes.  

[path]

SmartSendMail is a program that is installed when you install SmartAppLets. You need to specify the full path to the program to run it successfully or have it in your search path. For example:

c:\Program Files\SmartBatch\bin\SmartSendMail

You can set a search path for executable files using environmental variables. Refer to Windows documentation for information about paths and environmental variables.

BodyFileName

The path and file name of a file that contains the text for the body of the email message. This must be an ASCII file, such as a file with a .txt extension.

FileNameX

The path and file name of a file that contains an attachment to send with the email message. Any number of attachments can be added. The first attachment is indicated with FileName1, the second FileName2 and so on. The file can be of any type that can be sent via internet mail.

From

The email address of the person who is sending the message. This can be any valid email address that you want used if the recipient (send to) replies to the message.

To

Indicates the recipient or recipients of the email. You can specify multiple email addresses (that is, recipients) by separating the recipients with a semicolon.

For example:

sales@onlinetoolworks.com; marianne@onlinetoolworks.com

Server

The name of the mail server. If you are not sure what the value is for this, contact your mail or network administrator.

Subject

The text to be placed on the subject line for the email message.

Type

Must be either html for an html formatted body of the message or text for an ASCII text format.