EmailAttachment.Name

From Xojo Documentation

Property (As String )
aEmailAttachment.Name = newStringValue
or
StringValue = aEmailAttachment.Name

Supported for all project types and targets.

The name of the attached file.

Example

If fileField.Text <> "" Then
file = New EmailAttachment
file.Name = "Attached file"
End If