Enable unsafe apps
First we have to enable unsafe apps to connect to gmail.
https://myaccount.google.com/security
SMTP settings
smtp.gmail.com
SSL vereist: ja
TLS vereist: ja (indien beschikbaar)
Verificatie vereist: ja
Poort voor SSL: 465
Poort voor TLS/STARTTLS: 587