_MailItem.SaveAs(String, Object) _MailItem.SaveAs(String, Object) Method

Definition

Saves the Microsoft Outlook item to the specified path and in the format of the specified file type. If the file type is not specified, the MSG format (.msg) is used.

public void SaveAs (string Path, object Type);
Public Sub SaveAs (Path As String, Optional Type As Object)

Parameters

Path
String String

The path in which to save the item.

Type
Object Object

The file type to save. Can be one of the constants in the OlSaveAsType enumeration.

Remarks

Also note that even though olDoc is a valid OlSaveAsType constant, messages in HTML format cannot be saved in Document format, and the olDoc constant works only if Microsoft Word is set up as the default email editor.

Applies to