I tried to send email using Python script . Because I want login form with email sending option in my pending project. When I run my script , it give error regarding login. My email is not sent. But at the same time , I receive email from Google about sign-in preventing. They sent me warning that someone is trying to login your gmail account from this IP and Location. We can send email like this, I think something is going wrong , trying to solve it.