1. Enter these data.
- Gmail SMTP server address: smtp.gmail.com
- Gmail SMTP username: full Gmail address (e.g. username@gmail.com)
- Gmail SMTP password: Gmail password
- Gmail SMTP port (TLS): 587
- Gmail SMTP port (SSL): 465
- Gmail SMTP TLS/SSL required: yes
2. Turn on Less secure app access.
- Open google account settings.
- Click Security on the left pane.
- Turn on Less secure app access.
Note: Turning this on make your account is vulnerable.