This script adds two powerful tools to your Google Sheets menu: a bulk email sender for credentials and a strong password generator.
Copy the Google Sheet that containing the script, and then open it.
The very first time you try to run a function from the Password tool menu menu, Google will ask for permission. This is a standard security step.
Select a function from the menu, like "Send Credentials".
A dialog box will appear asking for authorization. Click Continue.
Choose your Google account.
You may see a warning that "Google hasn't verified this app." This is normal for personal scripts. Click Advanced, and then click "Go to [Your Script Name] (unsafe)".
Click Allow to grant the necessary permissions. You only need to do this once.
This feature quickly fills a range of cells in any column with unique, strong passwords.
Click on the menu Password tool menu > Password Generator > Generate Passwords.
A series of pop-up boxes will ask you for the following information:
Column Letter: The column where you want the passwords (e.g., C).
Start Row: The first row number to fill (e.g., 2).
End Row: The last row number to fill (e.g., 50).
Password Length: How many characters the password should have (minimum 12).
Once you've entered the details, the script will instantly populate the selected range with strong, random passwords. ✅
This feature sends an email to each person in your sheet containing the data from their specific row, formatted in a clean table.
Your sheet must have the recipient's email address in the first column (Column A).
The very first row of your sheet must be your headers (e.g., Email, Username, Password, Website). These headers will be used as labels in the email.
Click on the menu Password tool menu > Email Sender > Send Credentials.
The script will process all rows and send the emails.
A confirmation message will appear when the process is complete.
Log Sheet: A new sheet named SendLog is automatically created to track every email that was sent, failed, or skipped.
No Duplicates: The script checks the SendLog before sending. If an email address is already in the log, it will be skipped to prevent sending the same credentials twice.