Email in flowable

Hi All,

We are trying to configure email in flowable and have maintained the below parameters

flowable.mail.server.use-tls=true
flowable.mail.server.use-ssl=false
flowable.mail.server.host=(mail host)
flowable.mail.server.port=587
flowable.mail.server.default-from=(email id)
flowable.mail.server.username=(user name)
flowable.mail.server.password=(password)

the mail is not working with this config: cannot convert socket to TLS

if I enable ssl, then it starts connecting to 467 port instead of 587 and connection to mail host fails.

Could anyone suggest where its going wrong?