PowerTCP Mail for .NET
Add(MailMessage) Method




MailMessage to store on the server.
Adds a new message to the mailbox using APPEND.
Syntax
Public Overloads Sub Add( _
   ByVal message As MailMessage _
) 
Dim instance As Mailbox
Dim message As MailMessage
 
instance.Add(message)
public void Add( 
   MailMessage message
)
public: void Add( 
   MailMessage* message
) 
public:
void Add( 
   MailMessage^ message
) 

Parameters

message
MailMessage to store on the server.
Exceptions
ExceptionDescription
ProtocolExceptionBad IMAP protocol response received from server.
System.Net.Sockets.SocketExceptionA communications failure has occurred.
Remarks
Sends an APPEND command to the IMAP server, adding message to this mailbox. The newly added message will not be listed in the mailbox until the mailbox is updated by initiating another operation on the server. To manually update the mailbox, call Imap.Noop().
See Also

Reference

Mailbox Class
Mailbox Members
Overload List


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