SMTP Authentication Failed - eM Client 6.0.24928.0

Hi, I 've installed the last version and I configured two accounts by IMAP hosted in Gmail, but I have problems to send emails with both accounts.
When I do the diagnostics, everything works fine, but I have the following error sending the mail

[SMTP] An attemp to connect to XXXX failed. This could be caused by temporary server unavailability or incorrect settings. Do you want to check settings?

Thanks in advance

I can see this in the log…some help??

12:00:25 AM Federico Bucchi [SMTP]  MailExceptions.ConnectionException: Connection failed due to the following reason:
12:00:25 AM     “Invalid server reply when connecting: ‘Unexpected end of stream.’.”
12:00:25 AM    at MailClient.Smtp.SmtpSendCommand.Connect(WorkerStatus status)
12:00:25 AM    at MailClient.Smtp.SmtpSendCommand.Execute(WorkerStatus status)
12:00:25 AM    at MailClient.Commands.Command.Process(WorkerStatus status)

Thanks
Federico

Hello Federico,
can you please take a screenshot of the SMTP setting from Tools>Accounts section?

Regards,
Olivia

Hi Olivia…sorry but after I changed the Security Policy to Use SSL/TLS on special port (legacy) worked fine.
Regards
Federico