SMTP uses password authentication, and two factor auth sets up your account so that a password alone is not enough to access your account. I think this is unlikely to be a problem with mail.app, and deleting/re-creating the account is a red herring.
I tried to configure jenkins to send email notification with gmail as the POP provider but I could not succeed. SMTP server - pop.gmail.com Default user e-mail suffix - @gmail.com Sender E-mail Address - Foobar CI
I want to send one mail to user whenever he/she register at my website. I have created my gmail account for that, I've tried many samples from net but i'm not able to sent email yet. Please help
Gmail SMTP servers are the outgoing servers, the SMTP server allows you to send emails through your Gmail accounts from any email program. To download Gmail from mail server to your PC, Mac, iPhone, iPad or other devices, you have to enable POP or IMAP in Gmail settings, then set up gmail with an email program via POP or IMAP on your device.
You can change preferences for the SMTP mail server you use to send messages, as directed by the provider of your email accounts. To change these preferences in the Mail app on your Mac, choose Mail > Preferences, click Accounts, click Server Settings, click the outgoing Account pop-up menu, then choose Edit SMTP Server List. Open Mail for me
Using gmail account in Mac OS high sierra 10.13.3 the settings are greyed and this is a new setting in IMAP account , and you can't add the settings it will set up by its own ( just for security and if a Mac user enters it incorrectly the mail connection will show red dots and apple mail application will not be connected to servers ) .