Discuss this help topic in SecureBlackbox Forum

TElMessagePart.Assemble

TElMessagePart     See also     


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


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

Declaration

[C#]
    int Assemble(System.IO.Stream Destination, string Charset, TElHeaderEncoding HeaderEncoding, string BodyEncoding, string AttachEncoding, bool bAssembleSource);

[VB.NET]
    Function Assemble(ByVal Destination As System.IO.Stream, ByVal Charset As String, ByVal HeaderEncoding As TElHeaderEncoding, ByVal BodyEncoding As String, ByVal AttachEncoding As String, ByVal bAssembleSource As Boolean) As Integer

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

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

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

[Java]
    int assemble(TElStream Destination, String Charset, TElHeaderEncoding HeaderEncoding, String BodyEncoding, String AttachEncoding, boolean bAssembleSource);

Parameters

  • Destination - stream to which assembled data will be written.
  • Charset - charset of the part.
  • HeaderEncoding - type of the header encoding.
  • BodyEncoding - type of text parts encoding.
  • AttachEncoding - type of attach encoding.
  • bAssembleSource - shows assembly type. True - loaded message will be assembled in its unmodified state.
    Default value - False.

TElHeaderEncoding values

Return value

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

Description

    Use this method when you have defined all necessary message part fields.
    Assemble has functionality opposite to Parse method.

See also:     Parse    

Discuss this help topic in SecureBlackbox Forum