Connecting Gmail for the SMTP custom email provider

I am trying to Gmail as a custom SMTP provider. I have used the following settings:

  • From field is my email address.
  • The host field is smtp.gmail.com
  • Port is 587.
  • The username is my Gmail address
  • password is my Gmail password

I can save this information, but when I send a test email I do not receive any email. Any one know what i need to do to get this working.

Thanks