Back to product page

Save Method


Copies message to file on disk.

Syntax

  • Basic
object.Save (Filename)
The Save(object,Filename) syntax has these parts:
objectAn expression evaluating to an object of type SmtpMsg
FilenameRequired. A String value. Full path to a file on the disk where message is saved.

Remarks

If you want to copy message to external file on disk, use Save method. As a parameter you have to specify Filename where message will be stored. As a result you can create new message from old one just by calling this method.

Save method will copy contents of the memory. Everything about the message will be saved - boundary lines, headers, empty line, text.

Platforms

Windows