This Python script generates a random password and sends it via email using the Gmail SMTP server.
It prompts the user to enter the desired password length and their name. The code then generates a random password by selecting characters from a set of letters and digits. It establishes an SMTP connection with the Gmail server, logs in using provided credentials, and constructs an email with the generated password.
code generates a random password and sends it via email using the Gmail SMTP server.
It allows the user to customize the password length and recipient's email address.
- In Sender Email 📨
- In receiver Email 📧📮