Sending email fails when two factor authentication is on for Gmail

Create a custom app in you Gmail security settings. Log-in into Gmail with your account Navigate to https://security.google.com/settings/security/apppasswords In ‘select app’ choose ‘custom’, give it an arbitrary name and press generate It will give you 16 chars token. Use the token as password in combination with your full Gmail account and two factor authentication will … Read more

(WAMP/XAMP) send Mail using SMTP localhost [closed]

Method 1 (Preferred) – Using hMailServer After installation, you need the following configuration to properly send mail from wampserver: 1) When you first open hMailServer Administrator, you need to add a new domain. 2) Click on the “Add Domain …” button at the Welcome page. 3) Under the domain text field, enter your computer’s IP, … Read more

Getting error while sending email through Gmail SMTP – “Please log in via your web browser and then try again. 534-5.7.14” [closed]

I know this is an older issue, but I recently had the same problem and was having issues resolving it, despite attempting the DisplayUnlockCaptcha fix. This is how I got it alive. Head over to Account Security Settings (https://www.google.com/settings/security/lesssecureapps) and enable “Access for less secure apps”, this allows you to use the google smtp for … Read more

tech