##### Define > XML Interfaces > XML Wizard

# E-Mail

The E-mail XML Interface option creates an XML Interface to provide the ability to send an e-mail from Genesys Agent Scripting. This option opens the XML E-mail Wizard dialog box.

If you add a table—for example, to serve as the body of an email—then following the table you must add an XML tag for every column in that table, so that the email will be received with the correct table format. The following tags provide examples of table formatting:

- XML tag &endash; ”td”

- type &endash; ”Column”

- value &endash; ”Field from table”

## E-Mail Interface Name

Use the E-mail Interface Name field to provide a name for the interface that will provide the ability to send an e-mail. This name will be shown on the Genesys Agent Scripting button associated with this XML interface.

## Cancel

Click Cancel to stop the interface creation and close the dialog box.

## Next

Click the Next button to continue creating the XML Interface. The next page of the XML E-mail Wizard opens.

### SMTP Server Type

This field allows the user to choose the type of SMTP server from a drop-down list. The drop-down list has two choices: Port or Pickup Directory. If Port is selected, you must provide the SMTP Server name and Port. If Pickup Directory is selected, you must instead provide the Pickup Directory.

### SMTP Server

You may either select static or field. If Static is selected, you need to provide the name of the SMTP Server. If Field is selected, you need to select the field that is set to contain the name of the SMTP Server.

### SMTP Port

You may either select static or field. If Static is selected, you need to provide the port number for the SMTP Port. If Field is selected, you need to select the field that is set to contain the SMTP Port.

### SMTP Directory

You may either select static or field. If Static is selected, you need to provide the Pickup Directory. If Field is selected, you need to select the field that is set to contain the SMTP Directory.

### Previous

The Previous button will allow the user to go back to the previous page to review or change the information.

### Cancel

Click Cancel to stop the interface creation and close the dialog box.

### Next

Click the Next button to continue creating the XML Interface. The next page of the XML E-mail Wizard opens.

#### To

You may either select static or field. If Static is selected, you need to provide the e-mail addresses of the person(s) to whom the e-mail will be sent. If Field is selected, you need to select the field that is set to contain the e-mail addresses of the person(s) to whom the e-mail will be sent.

#### Cc

You may either select static or field. If static is selected, you need to provide the e-mail addresses of the person(s) to whom a copy of the e-mail will be sent. If Field is selected, you need to select the field that is set to contain the e-mail addresses of the person(s) to whom a copy of the e-mail will be sent. This field is optional.

#### Bcc

You may either select static or field. If static is selected, you need to provide the e-mail addresses of the person(s) to whom a copy of the e-mail will be sent. If Field is selected, you need to select the field that is set to contain the e-mail addresses of the person(s) to whom a copy of the e-mail will be sent. The e-mail addresses provided will not be visible to other recipients of the message. This field is optional.

#### From

You may either select static or field. If Static is selected, you need to provide the e-mail address from which the e-mail will be sent. If Field is selected, you need to select the field that is set to contain the e-mail address from which the e-mail will be sent.

#### Subject

You may either select static or field. If Static is selected, you need to provide the information to appear in the subject of the e-mail. If Field is selected, you need to select the field that is set to contain the information to appear in the subject of the e-mail.

#### Body

You may either select static or field. If Static is selected, you need to provide the information to appear in the body of the e-mail. If Field is selected, you need to select the field that is set to contain the information to appear in the body of the e-mail.

#### Attachment

You may either select static or field. If static is selected, you need to provide the file name of the attachment to be sent with the email. If Field is selected, you need to select the field that is set to contain the file name of the attachment to be sent with the e-mail. The file name specified must exist on the application server side. This field is optional.

#### Previous

The Previous button will allow the user to go back to the previous page to review or change the information.

#### Finish

The Finish button will create the E-mail Interface and will display a confirmation message indicating that the XML Interface has been created.

#### Cancel

Click Cancel to stop the interface creation and close the dialog box.