Discuss this help topic in SecureBlackbox Forum

TElMessage.AttachFile

TElMessage     See also     


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


Attaches file to the message.

Declaration

[C#/Java]
    TElMessagePart AttachFile(string ContentType, string FileName);

[VB.NET]
    Function AttachFile(ByVal ContentType As String, ByVal FileName As String) As TElMessagePart

[Pascal]
    function AttachFile(const ContentType, FileName : TString): TElMessagePart;

[C++]
    TElMessagePartHandle AttachFile(const sb_u16string &ContentType, const sb_u16string &FileName);
    TElMessagePartHandle AttachFile(const std::wstring &ContentType, const std::wstring &FileName);

[PHP]
    TElMessagePart AttachFile(string $ContentType, string $FileName)

Parameters

  • ContentType - type of the attachment in "type/subtype" format.
  • FileName - name of the file that must be attached.

Description

    Use this method to attach the file to the message. When you need to attach some data which is not a file use AttachData method.

See also:     AttachData    

Discuss this help topic in SecureBlackbox Forum