Discuss this help topic in SecureBlackbox Forum

TElMessage.AssembleMessage

TElMessage     See also     


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


This method assembles body and all header fields into one message.

Declaration

[C#/Java]
    int AssembleMessage(TElNativeStream Destination, [in] AnsiString ACharset, TElHeaderEncoding HeaderEncoding, [in] AnsiString BodyEncoding, [in] AnsiString AttachEncoding, bool bAssembleSource /* = False */);
    int AssembleMessage(TElNativeStream Destination, bool bAssembleSource /* = False */);

[VB.NET]
    Function AssembleMessage(ByVal Destination As TElNativeStream, ByVal ACharset As AnsiString, ByVal HeaderEncoding As TElHeaderEncoding, ByVal BodyEncoding As AnsiString, ByVal AttachEncoding As AnsiString, ByVal bAssembleSource As Boolean = False) As Integer
    Function AssembleMessage(ByVal Destination As TElNativeStream, ByVal bAssembleSource As Boolean = False) As Integer

[Pascal]
    function AssembleMessage( Destination: TElNativeStream; const ACharset: AnsiString; HeaderEncoding: TElHeaderEncoding; const BodyEncoding; AttachEncoding: AnsiString; bAssembleSource: Boolean = False): ELMIMERESULT;
    function AssembleMessage( Destination: TElNativeStream; bAssembleSource: Boolean = False): ELMIMERESULT;

[C++]
    int32_t AssembleMessage(TStream &Destination, bool bAssembleSource);
    int32_t AssembleMessage(TStream *Destination, bool bAssembleSource);
    int32_t AssembleMessage(TStream &Destination, const std::string &ACharset, TElHeaderEncoding HeaderEncoding, const std::string &BodyEncoding, const std::string &AttachEncoding, bool bAssembleSource);
    int32_t AssembleMessage(TStream *Destination, const std::string &ACharset, TElHeaderEncoding HeaderEncoding, const std::string &BodyEncoding, const std::string &AttachEncoding, bool bAssembleSource);

[PHP]
    integer AssembleMessage(TStream $Destination, bool $bAssembleSource)
    integer AssembleMessage(TStream $Destination, string $ACharset, integer $HeaderEncoding, string $BodyEncoding, string $AttachEncoding, bool $bAssembleSource)

Parameters

  • Destination - stream in which assembled data will be written.
  • ACharset - charset of the message.
  • HeaderEncoding - type of the header encoding.
  • BodyEncoding - type of text parts encoding.
  • AttachEncoding - type of attach encoding.
  • bAssembleSource - shows assembling type. True - loaded message will be assembled in its unmodified state. The default value is False.

Return value

    Returns 0 (EL_OK) on success, 1 (EL_WARNING) if information can't be encoded with given ACharset and encodings.
    Error otherwise.

Description

    Use this method to compose the message and save it to stream.
    AssembleMessage has the functionality opposite to ParseMessage method.

Note, that if you are using "short" form of AssembleMessage() method call, you can specify missing parameters with Charset, HeaderEncoding, BodyEncoding and AttachEncoding properties.

See also:     AttachEncoding     BodyEncoding     Charset     HeaderEncoding     ParseMessage    

Discuss this help topic in SecureBlackbox Forum