MoveReceivedMail

The MoveReceivedMail method will move the received message from the Inbox folder to a sub-folder of the Inbox folder. 

Syntax

Mailing.MoveReceivedMail

Parameters
FolderPath
A String that indicates the path of the destination folder. 
Remarks

Folder names must be separated using a forward slash (eg. "Sales/Jim").
The folder will be created if it does not exist.
This method can only be called when processing a message during the OnReceiveMail event.

Example

See the OnReceiveMail example

Sub Mailing_OnReceiveMail
   
If DSNType<>0 Then
        MoveReceivedMail "DSN"
    End If
End Sub

Applies To

Mailing Object

See Also

RemoveReceivedMail, OnReceiveMail



©2001-2015 eMill. All trademarks property of their owners.