Re: I received error msg. while sent to gmail

Giganews Newsgroups
Subject: Re: 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 gm
> ail. 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;

When I added new code, following error message:

My Code
-----------
    FreeAndNil(SMTP);
    SMTP := TIdSMTP.Create(self);

    {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;

Error Message
---------------
Connection Closed Gracefully.

Replies

None

In response to

I received error msg. while sent to gmail posted by Baran on Tue, 17 Apr 2007