Dart Smtp, Pop, Imap Controls
Add Method
Description
Add a message to the mailbox.
Syntax
Visual Basic
Public Sub Add( _
   ByVal Message As String _
) 
Parameters
Message
Remarks

Error Codes

This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):

Example
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
See Also

Mailbox Object  | Mailbox Members


PowerTCP Mail for ActiveX Documentation Version 2.13
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic