Discuss this help topic in SecureBlackbox Forum


TElSMTPClient     See also     

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

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


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

    Event OnDSNOptions As TSBSMTPDSNOptionsEvent
    Delegate Sub TSBSMTPDSNOptionsEvent(ByVal Sender As Object, ByVal RcptTo As String, ByRef Options As TSBSMTPDSNOptions)

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

    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);

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


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

TSBSMTPDSNOption values:

TSBSMTPDSNOptionsRaw values


    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