I received error msg. while sent to gmail

Giganews Newsgroups
Subject: I received error msg. while sent to gmail
Posted by:  Baran (onurbar…@derinbilgi.com.tr)
Date: Tue, 17 Apr 2007

Hi All,

I am sending mail via TidSMTP (Version 9.00.10) and my mails not going to gmail. I received following error messages. Why?

Error Messages
---------------
Connection Closed Gracefully.
5.5.1 Authentication Required j9sm686800mue

My Code
-----------
    {authentication settings}
    SMTP.AuthenticationType := atLogin;
    SMTP.Username := SifreCoz(SendMailB);
    SMTP.Password := SifreCoz(SendMailP);

    {General setup}
    SMTP.IOHandler := IdSSLIOHandlerSocket1;
    SMTP.Host := 'smtp.gmail.com';
    SMTP.Port := 465;

Replies