Product Logo

SMTPit Pro

A Feature-rich Email plug-in

Functions

SMTPit_File_Export

NameSMTPit_File_Export
Description

This function will export a file from a container to a specified path. SMTPit Pro will use the name of the file in the container unless you specify a name with the “SaveAs” parameter.

Return TypeText
FormatSMTPit_File_Export ( Container ; Path ; SaveAs )
Required Parameters
Container

The Container that contains the File you are Exporting.

Path

The Path to the Folder where you want the Exported File.

Optional Parameters
SaveAs

The File Name you want the Exported File to have.

Examples
Example 1

Exports the file in the "Container" field to "c:\exports" on Windows.

SMTPit_File_Export( Container ; "c:\exports" )
Example 2

Exports the file in the "Container" field to "/exports/" on Mac.

SMTPit_File_Export( Container ; "/exports/" )
Example 3

Exports the file in the "Container" field to "c:\exports\newexport.txt".

SMTPit_File_Export( Container ; "c:\exports" ; "newexport.txt" )
Example 4

Exports the file in the "Container" field to "/exports/newexport.txt".

SMTPit_File_Export( Container ; "/exports/" ; "newexport.txt" )