Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delphi 10.4 - 11 Indy IMAP problem
#1
Hi to all,
in my program i generate a report to a pdf file and sent it with email.
The email is sended via yahoo with my login usarname and password, after this email is moved to a selected yahoo mail box with imap4 component.

Due to new yahoo third app yahoo rules i had register this app with it's new authorization password.
Now both, smtp and imap4, component when i send this email must login with my username and app password (the same for smtp and imap4) but, while for smtp i have no problem and i continue send the email, i'm no more able to move the message because each time i try to connect with imap4 iget (always) the "connection closed gracefully" exception.

For SMTP (work)
SSl1: TIdSSLIOHandlerSocketOpenSSL

 Username := MyUsername
 Password := Yahoo security app password

 MaxLineAction = maSplit
 Port := 587
 Mode = sslmClient
 VerifyMode = []
 VerifyDepth = 0


 object SMTP: TIdSMTP
    IOHandler = SSl1
    Port = 587
    SASLMechanisms = <>
    UseTLS = utUseExplicitTLS

    Username := MyUsername
    Password := Yahoo security app password

For IMAP4 (Connection closed gracefully excelption)
SSl1: TIdSSLIOHandlerSocketOpenSSL

 Username := MyUsername

 Password := Yahoo security app password

 MaxLineAction = maSplit

 Port := 993

 Mode = sslmClient

 VerifyMode = []

 VerifyDepth = 0



IMAP4: TIdIMAP4
    IOHandler = SSl1
    UseTLS = utUseExplicitTLS
    SASLMechanisms = <>
    MilliSecsToWaitToClearBuffer = 10
    Port := 993
    Username := MyUsername
    Password := Yahoo security app password




Thank's for your appreciate help !!!



Daniele
Reply


Messages In This Thread
Delphi 10.4 - 11 Indy IMAP problem - by Daniele64 - 10-30-2021, 08:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)