10-30-2021, 08:53 AM
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
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