constructor TgMailFTP.Create(AUsername, APassword:
string;
AStringGrid: TStringGrid; AComboBox: TComboBox);
begin
FsmtpHost := '
smtp.gmail.com';
FUsername := AUsername;
FPassword := APassword;
FsmtpPort := 587;
Fsmtp := TIdSMTP.Create;
Fsmtp.Host := FsmtpHost;
Fsmtp.Username := FUsername;
Fsmtp.Password := FPassword;
Fsmtp.Port := FsmtpPort;
Fsmtp.AuthType := atDefault;
Fsmtp.MailAgent := '
Thunderbird 2.0.0.9 (Windows/20071031)';
Fssl := TIdSSLIOHandlerSocketOpenSSL.Create;
Fssl.ConnectTimeout := 15000;
Fssl.SSLOptions.Method := sslvTLSv1;
Fssl.SSLOptions.Mode := sslmClient;
Fssl.SSLOptions.VerifyMode := [];
Fssl.SSLOptions.VerifyDepth := 0;
Fsmtp.IOHandler := FSSL;
Fsmtp.UseTLS := utUseImplicitTLS;
end;