wodSmtpServer ActiveX Control - Add Method
      
 

Description

Adds new message to relay queue.


Return Type

A SmtpRelay object.  Reference to new instance of SmtpRelay object.


Syntax

object.Add (Message)



The Add Method syntax has these parts:

Part Description
object An expression evaluating to an object of type SmtpRelays.
Message Required. A SmtpMessage object. Message that will be relayed.

Remarks

Add method will add new message to the collection of Relays. Once message is added, wodSmtpServer will take care that message will be delivered to destination SMTP server automatically.

You can refer to RelayStateChange event to see how the message is delivered. Once message is delivered successfully, RelayDone event will be fired.