Mailbox Object : Add Method |
Visual Basic |
---|
Public Sub Add( _ ByVal Message As String _ ) |
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):
Dim Message As Message Private Sub Command1_Click() On Error GoTo OnError ' use intrinsic error handling ' Add a Message to the INBOX. Imap1.Mailboxes("INBOX").Add Message.Content Exit Sub OnError: ' Any error jumps here Debug.Print "Error #" + CStr(Err.Number) + ": " + Err.Description End Sub