Gets and sets the name of the current file attachment.
A string which specifies the name of an attached file.
The Attachment property specifies the name of the file attachment in a multipart message. When a new part is selected that contains an attached file, the Attachment property is updated to reflect the attached file's name.
This property is used by the attach and extract actions to specify the local file name that is to be used. Changing its value does not change the attached file name in the multipart message itself.
MailMessage Class | SocketTools Namespace