Google, by default, restricts less secure sign‑in
technology that makes your account vulnerable,
which means you won't be able to send emails directly
from scripts used in this tool.
Hence,
you will have to allow less secure apps to leverage
the Gmail service to send emails.
Remember that you won't be able to configure this setting
for Google accounts that have two‑step verification
enabled. To allow less secure apps,
you first need to navigate to
myaccount.google.com/lesssecureapps. As soon as this page opens,
I will be presented with a toggle option to turn the less secure
apps setting on or off. As we can see, by default,
this setting is set to Off.
I will now switch it, and we can see the setting is now updated and in effect.