You have to disable 2-factor in order to connect to your gmail account with SMTP. This is why I say in the seminar to use a 2nd gmail account for your mail sending - so you're not making your primary account at risk.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.