Discuss this help topic in SecureBlackbox Forum

TElSMTPClient.Send

TElSMTPClient     See also     


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


Sends an email message.

Declaration

[C#/Java]
    void Send(TElMessage Message);
    void Send(TElSimpleMIMEMessage Message);
    void Send(string MailFrom, TElStringList RcptTo, TElStringList Message);
    void Send(string MailFrom, TElStringList RcptTo, System.IO.Stream Message);
    void Send(System.IO.Stream Message);

[VB.NET]
    Sub Send(ByVal Message As TElMessage)
    Sub Send(ByVal Message As TElSimpleMIMEMessage)
    Sub Send(ByVal MailFrom As String, ByVal RcptTo As TElStringList, ByVal Message As TElStringList)
    Sub Send(ByVal MailFrom As String, ByVal RcptTo As TElStringList, ByVal Message As System.IO.Stream)
    Sub Send(ByVal Message As System.IO.Stream)

[Pascal]
    procedure Send(Message : TElMessage);
    procedure Send(Message : TElSimpleMIMEMessage);
    procedure Send(MailFrom : string; RcptTo, Body : TStringList);
    procedure Send(MailFrom : string; RcptTo : TStringList; Message : TStream);

[C++]
    void Send(TElMessage &Message);
    void Send(TElMessage *Message);
    void Send(TElSimpleMIMEMessage &Message);
    void Send(TElSimpleMIMEMessage *Message);
    void Send(const std::string &MailFrom, TElStringList &RcptTo, TElStringList &Message);
    void Send(const std::string &MailFrom, TElStringList *RcptTo, TElStringList *Message);
    void Send(const std::string &MailFrom, TElStringList &RcptTo, TStream &Message);
    void Send(const std::string &MailFrom, TElStringList *RcptTo, TStream *Message);
    void Send(TStream &Message);
    void Send(TStream *Message);

[PHP]
    void Send(TElMessage $Message)
    void Send(TElSimpleMIMEMessage $Message)
    void Send(string $MailFrom, TElStringList $RcptTo, TElStringList $Message)
    void Send(string $MailFrom, TElStringList $RcptTo, TStream $Message)
    void Send(TStream $Message)

Parameters

  • Message - Message to be sent
  • MailFrom - Address of the sender
  • Body - Message body
  • RcptTo - Address of the recipient

Description

    Use this method to send an email message. Call Login method before sending any messages. When the message is being sent, the OnProgress event is fired.

See also:     Login     OnProgress    

Discuss this help topic in SecureBlackbox Forum