wodSmtpServer ActiveX Control - MailReset Method
      
 

Description

Called when user sends RSET command to reset any issued commands.


Return Type

None  


Syntax

object.MailReset Owner, User



The MailReset 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 wants to reset the session.

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 when client sends 'RSET' command, thus canceling any previous commands. For example, client may send MAIL FROM: and RCPT TO: commands (and you will receive appropriate notifications  for those commands) and after that it can 'change it's mind' and reset it - to start all over (with new sender and recipients). Since you must know that any previously stored recipients are now invalid - you should update that information from this notification.

RSET command can be issued anytime during message posting - except when actual body is transmitted.