Installation & Getting Started¶
This guide walks you through the complete setup process for MassMailer, from installation through your first email campaign.
Installation Options¶
Option 1: Direct Installation (Recommended)¶
- Create a New Google Sheet in your Google Drive
- Click on Extensions > Apps Script
- Delete any code in the default Code.gs file
- Copy and paste the code from each file in the repository into new files in your project:
Code.jsStateManager.jsUI.jsSheetSetup.jsFollowup.jsRateLimitHandler.js- HTML files:
Options.html,Progress.html,Diagnostics.html - Create the
appsscript.jsonfile by clicking on Project Settings (⚙️) > Editor > Show "appsscript.json" manifest file in editor - Copy and paste the content of the
appsscript.jsonfile from the repository - Save the project with an appropriate name (e.g., "MassMailer")
- Return to your spreadsheet and refresh the page
Option 2: Copy from Template¶
- Visit the MassMailer Template Spreadsheet (coming soon)
- Click File > Make a Copy
- The copy will include all the necessary code and structure
Option 3: Google Workspace Marketplace (Coming Soon)¶
- Visit the Google Workspace Marketplace
- Search for "MassMailer"
- Click Install
- Follow the authorization prompts
- The add-on will appear in your Google Sheets Add-ons menu
Initial Setup¶
Setting Up Required Sheets¶
After installing the script, you need to set up the required sheets:
- In your spreadsheet, look for the new menu item "Mass Email"
- Click on Mass Email > Setup Required Sheets
- Confirm the setup when prompted
This will create: - Emails sheet: For recipient data - Config sheet: For system configuration - Progress sheet: For logging and tracking
Configuring Settings¶
- Click on Mass Email > Configure Settings
- Fill in the required information:
- Your Name: Name to appear in the "From" field
- Gmail Draft Template: ID or subject of your template email draft
- Emails Per Batch: Number of emails to send in each batch (start with 20-30)
-
Interval Between Batches: Minutes to wait between batches (5-10 minutes recommended)
-
Configure advanced settings (optional):
- Maximum Daily Emails: Limit to prevent exceeding Gmail quotas
- Fallback Values: Text to use when personalization data is missing
-
Tracking Options: Enable/disable email tracking features
-
Set up auto-followups (optional):
- Enable Auto-Followups: Turn on the auto-followup system
- Followup Template: Select a draft to use for followup emails
- Days to Wait: Time before sending followups
- Maximum Followups: Limit for followup attempts
Creating Email Templates¶
Gmail Draft Method¶
- Open Gmail and create a new email
- Write the subject line and body of your email
- Use placeholder syntax for personalization:
{{FirstName}}- Recipient's first name{{LastName}}- Recipient's last name{{Name}}- Full name (uses FirstName + LastName){{CompanyName}}- Company name- Save the email as a draft (don't send it)
- The draft will be available in MassMailer's configuration
Template Examples¶
Simple Text Template:
Subject: Following up regarding {{CompanyName}}
Hi {{FirstName}},
I hope this email finds you well. I wanted to reach out regarding our service that might be of interest to {{CompanyName}}.
Would you be available for a 15-minute call to discuss how we might work together?
Best regards,
[Your Name]
HTML Template Example:
<div style="font-family: Arial, sans-serif; max-width: 600px;">
<p>Hello {{FirstName}},</p>
<p>I hope this email finds you well. I wanted to reach out regarding our service that might be of interest to <strong>{{CompanyName}}</strong>.</p>
<p>Would you be available for a 15-minute call to discuss how we might work together?</p>
<p>Best regards,<br>
[Your Name]</p>
</div>
Adding Recipients¶
- Navigate to the Emails sheet in your spreadsheet
- Add your recipients with the following information:
- EmailID: A unique identifier (can be auto-generated)
- Email: Recipient's email address
- FirstName: Recipient's first name
- LastName: Recipient's last name
-
CompanyName: Recipient's company
-
Leave the Status and other tracking columns blank
Sending Your First Campaign¶
- Make sure your template and recipients are set up
- Click on Mass Email > Start Sending Emails
- The system will begin sending emails in batches
- Monitor progress by clicking Mass Email > View Progress & Stats
Monitoring and Management¶
Viewing Progress¶
- Click on Mass Email > View Progress & Stats
- This shows:
- Total emails
- Sent/failed counts
- Current status
- Activity logs
Managing the Process¶
- Stop Sending: Mass Email > Stop Sending Emails
- Retry Failed Emails: Mass Email > Retry Failed Emails
- Process Followups Manually: Mass Email > Followup Management > Process Scheduled Followups
Troubleshooting¶
If you encounter issues:
- Check the Progress sheet for error messages
- Run diagnostics: Mass Email > Advanced > System Diagnostics
- Consult the Troubleshooting Guide
Advanced Setup¶
Daily Maintenance¶
Set up automatic maintenance (recommended):
- Click Mass Email > Advanced > Setup Daily Maintenance
- This creates a trigger to:
- Reset daily email counters
- Process scheduled followups
- Recover from stuck processes
Gmail API Setup (for higher volume)¶
For sending more emails (up to 2,000+ daily):
- Enable the Gmail API in your Google Cloud Console
- Create credentials for your project
- Enable the Gmail API in the Advanced Services of your Apps Script project
- Configure MassMailer to use the Gmail API in settings