Product Logo

SMTPit Pro

Next Generation Email plug-in

Functions

SMTPit_SetAttachmentWithDialog

NameSMTPit_SetAttachmentWithDialog
Description

This function presents you with a standard open file dialog that lets you choose a file from your hard drive. It then attaches the chosen file to the current email.

Return TypeText
FormatSMTPit_SetAttachmentWithDialog ( StartPath ; Prompt ; SMTPit_Append )
Optional Parameters
StartPath

The Path to the Folder to display when the dialog first opens.

Prompt

An optional Prompt or Message to display on the dialog.

SMTPit_Append

Leave this in to add the Attachment to the current list of Attachments.

Examples
Example 1

Attaches the file you choose from an open file dialog.

SMTPit_SetAttachmentWithDialog
Example 2

Appends the file you choose from an open file dialog to the list attachments for the current email.

SMTPit_SetAttachmentWithDialog( "" ; "" ; SMTPit_Append )