//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdExplicitTLSClientServerBase.hpp>
#include <IdIOHandler.hpp>
#include <IdIOHandlerSocket.hpp>
#include <IdIOHandlerStack.hpp>
#include <IdMessage.hpp>
#include <IdMessageClient.hpp>
#include <IdSMTP.hpp>
#include <IdSMTPBase.hpp>
#include <IdSSL.hpp>
#include <IdSSLOpenSSL.hpp>
#include <IdTCPClient.hpp>
#include <IdTCPConnection.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Dialogs.hpp>
#include <Vcl.Buttons.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
	TButton *Button1;
	TIdSMTP *IdSMTP1;
	TIdMessage *IdMessage1;
	TIdSSLIOHandlerSocketOpenSSL *IdSSLIOHandlerSocketOpenSSL1;
	TBevel *Bevel1;
	TBevel *Bevel2;
	TBevel *Bevel3;
	TBevel *Bevel4;
	TLabel *Label1;
	TLabel *Label2;
	TLabel *Label3;
	TLabel *Label4;
	TLabel *Label5;
	TLabel *Label6;
	TLabel *Label7;
	TLabel *Label8;
	TEdit *EditHost;
	TEdit *EditPort;
	TEdit *EditMyEmail;
	TEdit *EditMyPass;
	TEdit *EditMyClient;
	TLabel *Label9;
	TLabel *Label10;
	TEdit *EditCC;
	TEdit *EditBCC;
	TEdit *EditAttachFile;
	TOpenDialog *OpenDialog1;
	TMemo *Memo1;
	TBevel *Bevel5;
	TEdit *EditSubject;
	TLabel *Label11;
	TComboBox *ComboBoxTLS;
	TLabel *Label12;
	TLabel *Label13;
	TSpeedButton *SpeedButtonAttachFile;
	void __fastcall Button1Click(TObject *Sender);
	void __fastcall EditAttachFileEnter(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall ComboBoxTLSCloseUp(TObject *Sender);
	void __fastcall EditMyEmailKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall SpeedButtonAttachFileClick(TObject *Sender);



private:	// User declarations
public:		// User declarations
	__fastcall TForm1(TComponent* Owner);
    int __fastcall TForm1::countStr(String stText, String stCheck) ;
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
