program mail command

Syntax

program mail keyword

Compose and send email messages.

Note

As with all program commands, use of the command word program is optional; program mail and mail are both valid.

This facility allows data files and FISH functions to send notification emails upon completion of notable tasks. FISH access to the mail facility is detailed in Mail Utilities.

Email account settings provided with this command may also be specified in the “Email” section of the “Tools/Options” dialog.

account s

Set the user account name in the SMTP settings. For example, me@mycompany.com. This is the account information fo logging into your email account. This information is stored for this user on this computer.

add keyword

Add an item to the email.

attachment s

Add the file s as an attachment.

bcc s

Add a “bcc” recipient.

cc s

Add a “cc” recipient.

to s

Add a “to” recipient.

body keyword

Set the email body.

file s

Set the message body by importing s.

string s

Set the message body to s.

clear

Clear the current mail variables, including body, recipient list and attachment list.

domain s

Set the company domain name. For example, smtp.mycompany.com or 192.197.32.6. This information is stored for this user on this computer.

from s

Set the address corresponding to the email account. In many cases this is the same information as the account login information (given with the account keyword); in those cases the from address does not need to be specified.

host s

Set the SMTP host name. For example, mycompany.com. This information is stored for this user on this computer.

password

Set the user password for the email account. A special prompt will be given, without normal keyboard echo. This information is encrypted and stored for this user on this computer.

port i

Set the SMTP port. The default value is 25. This information is stored for this user on this computer.

remove keyword

Remove an item from the email.

attachment s

Remove the attached file s.

bcc s

Remove a “bcc” recipient.

cc s

Remove a “cc” recipient.

to s

Remove a “to” recipient.

send

Validate the mail settings, compose the message, and send the message.

subject s

Set the message subject.