wodSmtpServer ActiveX Control - HeadersReceived Method
      
 

Description

Called when user sends message headers.


Return Type

None  


Syntax

object.HeadersReceived Owner, User, Headers



The HeadersReceived Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodSmtpNotify.
Owner Required. A wodSmtpServer object. Reference to wodSmtpServerCom instance that called this callback method.
User Required. A SmtpUser object. Reference to the user who is sending mail message.
Headers Required. A SmtpHeaders object.

Collection of headers user sent with the message.


Remarks

NOTE: This method is called only if you implemented IwodSmtpNotify interface in your application, and wodSmtpServer1.Notification property has received reference to instance of your implementation.

This notification method is called immediately after user sends mail headers, but before any body is received, and before headers are written to the local file. At this point you can access Headers collection and add, change, remove headers from it as you wish.

You cannot deny accepting further message because SMTP protocol does not allow it.