Can't Configue Gmail Smtp

I am getting an error that the test email failed when clicking on test connection.

I don't see an option to use local host as in the usage instructions.

I have been using different settings for outgoing server options, trying to figure it out, but nothing seems to work.

I am using gmail, so I have used the examples on out going email settings, used both examples to no avail, also tried it with and without the port 465.

I have enable cron and enabled it as well, and still does not work.