How to setup SMTP for Gmail business account?

Moses Shohet, a jquery form user who had hard time setting up SMTP for his business account. Thanks to his courtesy, here is the instructions, enjoy!

Enabling a business gmail account to work with "Less Secure Apps" is not as straightforward and simple as it is with standard gmail accounts. In any event, I have written here the steps that need to be followed in order to enable a business gmail account to work with "Less Secure Apps". You can post it on your website. It might help those who like me have a business gmail account and need to set it up so it will work with jQuery. Here are the instructions:

Allowing 'Less secure apps' (e.g. the jQueryForm) to have access to a business Gmail account and use it as an SMTP gateway:

  1. Open a browser tab and log into you your business gmail account.
  2. Open another tab and bring up the admin area of google apps (admin.google.com).
  3. Click on 'More Controls' at the bottom of the page.
  4. Click on 'Security'.
  5. Click on 'Basic Settings'.
  6. Scroll down to 'Less secure apps' and click on 'Go to settings for less secure apps'.
  7. Select the third option 'Enforce settings for less secure apps for all users (Not Recommended)'.
  8. Save the settings.