Cant send email to gmail error 100 or 217

hoi
i try to send email to gmail from vm204 but dosnt work
i open vm204 cart in app and go to setting email setting and give in
server is smtp.gmail.com
port is 587
TLS is on
user is x.x ath gmail.com
password is xxxx
then i push on save and try test mail settings then i have error 100 if i try with port 465 i have error 217
wath can be the sulution?
in my IPcamera it works but there i have to use startTLS
firmware is 1.2.1
greats gusse patrick