AddAttachmentFile Method

AddAttachmentFile(filename As string, name As string, contentType(optional) As string)

AddAttachmentFile(string filename, string name, string contentType(optional));

Parameters

name type description
filename string The filename, including path if required.
name string (optional) If not specified, the filename will be used.
contentType(optional) string (optional) If not specified, extension on the filename will be used to set the content type.

Description

Adds a new attachment to the email.

If you do not specify a name, it will be given the filename.

The content type will be set automatically if the name has an extension that is known on the computer.

Object

SMTPMail



We always want to hear your feedback. Send to feedback@toolsack.com.
© 2000-2001 Toolsack Software Ltd.