Discuss this help topic in SecureBlackbox Forum

TElSMTPClient.OnDSNOptions

TElSMTPClient     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when the SMTP client needs DSN options for the specific recepient.

Declaration

[C#]
    event TSBSMTPDSNOptionsEvent OnDSNOptions;
    delegate void TSBSMTPDSNOptionsEvent(Object Sender, string RcptTo, ref TSBSMTPDSNOptions Options);

[VB.NET]
    Event OnDSNOptions As TSBSMTPDSNOptionsEvent
    Delegate Sub TSBSMTPDSNOptionsEvent(ByVal Sender As Object, ByVal RcptTo As String, ByRef Options As TSBSMTPDSNOptions)

[Pascal]
    property OnDSNOptions: TSBSMTPDSNOptionsEvent;
    TSBSMTPDSNOptionsEvent = procedure(Sender: TObject; const RcptTo: string; var Options: TSBSMTPDSNOptions) of object;

[C++]
    void get_OnDSNOptions(TSBSMTPDSNOptionsEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnDSNOptions(TSBSMTPDSNOptionsEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSMTPDSNOptionsEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcRcptTo, int32_t szRcptTo, TSBSMTPDSNOptionsRaw &Options);

[PHP]
    TSBSMTPDSNOptionsEvent|callable|NULL get_OnDSNOptions()
    void set_OnDSNOptions(TSBSMTPDSNOptionsEvent|callable|NULL $Value)
    callable TSBSMTPDSNOptionsEvent(TObject $Sender, string $RcptTo, integer &$Options)

[Java]
    TSBSMTPDSNOptionsEvent getOnDSNOptions();
    void setOnDSNOptions(TSBSMTPDSNOptionsEvent Value);
    TSBSMTPDSNOptionsEvent.Callback OnDSNOptions = new TSBSMTPDSNOptionsEvent.Callback() {
        public void TSBSMTPDSNOptionsEventCallback(TObject Sender, String RcptTo, short[] Options) {
            //...
        }
    }

Parameters

  • RcptTo - specifies the recepient.
  • Options - contains DSN options.
  • pcRcptTo - specifies the recepient.
  • szRcptTo - the length of pcRcptTo.

TSBSMTPDSNOption values:

TSBSMTPDSNOptionsRaw values

Description

    Use this event handler to set delivery status notification options for given recepient.

See also:     DSNOptions     DSNReturnType     OnDSNEnvIDGenerate    

Discuss this help topic in SecureBlackbox Forum