• No results found

Sending Email

In document Remote Software Facility (Page 133-138)

Use this command to send an email message. Text files, save files and spooled files can be attached to the message.

Note: You configure the connection to your outgoing mail server by setting the appropriate RSF defaults. Use the

Change RSF Defaults (CHGRSFDFT) command to set defaults for the outgoing mail server, port, user ID, password, from address and encryption.

You can use the Change RSF User Options (CHGRSFUO) command to set a different "from address" for individual users.

When encryption is used for your outgoing mail, you must configure SSL on your iSeries machine. See Appendix G

for details on configuring SSL for outgoing mail.

See also commands Email Library (EMLLIBRSF), Email Objects (EMLOBJRSF) and Email IFS Objects (EMLIFSRSF) which make it easy to email objects on the fly, and Work With Spooled Files Using RSF (WRKSPLFRSF) which makes it easy to select and email spooled files.

The prompted version of the SNDEMLRSF command is shown below. Click on the image to see parameter descriptions. Send Email (SNDEMLRSF)

Type choices, press Enter.

Recipients:

Address . . .

Type . . . *TO *TO, *CC, *BCC + for more values

Subject . . . Message . . .

Delivery priority . . . *NORMAL *NORMAL, *HIGH File containing message . . . . Name

Library . . . *LIBL Name, *CURLIB, *LIBL Message member . . . *FIRST Name, *FIRST

Attach text file:

File . . . Name

Library . . . *LIBL Name, *CURLIB, *LIBL Member . . . *FIRST Name, *FIRST

Label . . . *FILE Name, *FILE + for more values

Attach save file:

File . . . Name

Library . . . *LIBL Name, *CURLIB, *LIBL Label . . . *FILE Name, *FILE

+ for more values Attach spooled file:

Spooled file . . . Name Job . . . * Name, * User . . . Name

Spooled file number . . . *LAST Number, *ONLY, *LAST Label . . . *FILE Name, *FILE

+ for more values

Print session log . . . *NO *YES, *NO

More... F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys

The parameters for the SNDEMLRSF command are described below.

Recipients

Enter up to 25 target email addresses for the message.

Note: To send a text message to a cell phone, enter the email address as follows. Only the first 160

characters of the message will be visible:

Carrier Format Sprint phonenumber@messaging. sprintpcs.com Verizon [email protected] T-Mobile phonenumber@tmomail. net AT&T [email protected] AIM +1phonenumber

The possible address values are:

email-address: Enter a valid email address.

The possible type values are:

*TO: This is a normal recipient. *CC: Send as a carbon copy.

*BCC: Send as a blind carbon copy.

Subject

Specify the subject of the email. The possible values are:

text: Enter a text string of up to 100 characters. Message

Enter the message text. The possible values are:

*PROMPT: An SEU session is started allowing you to type the message text into a temporary source

member.

*FILE: The message is taken from an existing source or database file. If *FILE is specified for this

parameter, you must also specify a value for the "File containing message" (MSGFILE) parameter.

text: Enter up to 5000 characters of ad hoc message text. You can use the sequence &N to force the start

of a new line.

Delivery Priority

Specify the delivery priority for the message. Some email clients will highlight messages that have a higher than normal delivery priority.

The possible values are:

*NORMAL: Normal delivery priority is used. *HIGH: High delivery priority is used. File Containing Message

Specify the qualified name of an existing file that contains the body of the message to be sent. This can be a source file or a database file.

This parameter is ignored unless *FILE is specified for the Message parameter. The possible file values are:

file-name: Enter the name of an existing source or database file.

The possible library values are:

*LIBL: The file is found using the library list.

*CURLIB: The file is found in the job's current library.

library-name: Enter the name of the library that contains the file. Message Member

Specify the name of the member that contains the body of the message to be sent. This parameter is ignored unless *FILE is specified for the Message parameter. The possible values are:

*FIRST: The first member in the specified file is used. member-name: Enter the name of the member to use. Attach Text File

as plain text.

The possible file values are:

file-name: Enter the name of an existing source or database file.

The possible library values are:

*LIBL: The file is found using the library list.

*CURLIB: The file is found in the job's current library.

library-name: Enter the name of the library that contains the file.

The possible member values are:

*FIRST: The first member in the specified file is used. member-name: Enter the name of the member to use.

The possible label values are:

*FILE: The name of the attachment will be the same as the file name, plus an extension of ".txt". attachment-name: Enter the name to use for the attachment. An extension of ".txt" is added to the label

specified.

Attach Save File

Specify up to 30 save files to attach to the message. Data in the save files is treated as binary.

Note: On the client machine, download the free InstallAid tool from Bug Busters to make the handling

of save file attachments easier. With InstallAid on the client PC, you can install the contents of a save file to an iSeries machine by just double clicking on the attachment. See www.bugbusters.net/download. htm for more information.

The possible file values are:

file-name: Enter the name of an existing save file.

The possible library values are:

*LIBL: The save file is found using the library list.

*CURLIB: The save file is found in the job's current library.

library-name: Enter the name of the library that contains the save file.

The possible label values are:

*FILE: The name of the attachment will be the same as the save file name, plus an extension of ".savf". attachment-name: Enter the name to use for the attachment. An extension of ".savf" is added to the label

Attach Spooled File

Specify up to 30 spooled files to attach to the message. The data in the spooled files is treated as plain text. The possible spooled file values are:

file-name: Enter the name of an existing spooled file.

The possible job values are:

*: The spooled file was created by the current job.

job-name: Enter the name of the job in which the spooled file was created.

The possible user values are:

user-name: Enter the user for the job in which the spooled file was created.

The possible job number values are:

000000-999999: Enter the number of the job in which the spooled file was created.

The possible spooled file number values are:

*LAST: The last spooled file with the specified name in the specified job is used. *ONLY: The only spooled file with the specified name in the specified job is used. number: Enter the number of the spooled file to use.

The possible label values are:

*FILE: The name of the attachment will be the same as the spooled file, plus an extension of ".txt". attachment-name: Enter the name to use for the attachment. An extension of ".txt" is added to the label

specified.

Print Session Log

Indicate whether to print the SMTP session log for this message. The log can be useful for troubleshooting. The possible spooled file values are:

*NO: The session log is not printed. *YES: The session log is printed. Related Commands:

The following commands are discussed elsewhere in this manual:

Send Objects (SNDOBJRSF)

Send Documents (SNDDOCRSF)

For more information about the following commands, prompt the command and press F1 to view the on-line help text:

Email Library (EMLLIBRSF) Email Objects (EMLOBJRSF) Email IFS Objects (EMLIFSRSF)

Work With Spooled Files Using RSF (WRKSPLFRSF)

In document Remote Software Facility (Page 133-138)