Arthur,

This is the settings I use in my other apps:

Here is example of another method: PHP Script for Sending Email using Gmail...