After clicking the link above, click “How to generate an App password”, then click “Visit your App passwords page.” Log into your google account if prompted. You may receive a message saying “The setting you are looking for is not available for your account” In that case, click “Show all account settings.” Under “Sign-in & security,” click “Connected apps & sites.” Locate the box that says, “Allow less secure apps” and turn it ON. Verify your gmail settings in the B4J app and try sending an email again.