INTRODUCTION
Manual follow-up emails are time-consuming.
Goal: Automate payment reminders with personalization.
The process is divided into two steps:
- Create personalized reminder images
- Send them via email automatically
LIVE DEMONSTRATION
- Step 1: Generate personalized reminders for each customer
- Step 2: Send those reminders via email in one click
PROMPT - 1
- I have an Excel file with 4 columns:
- Customer Firm Amount Service
- I want a Python script that generates a separate image for each customer with a personalized message.
- The image should display:
- A greeting like: "Dear [Customer]" (Customer name to be taken from the Excel file)
- A message such as: "Your outstanding payments with our firm are listed below:"
- A properly formatted table showing:
- Firm | Service | Amount
- A closing note like: "We kindly request you to clear the above dues at the earliest."
- You can slightly rephrase the message to make it sound more professional if needed.
Important Points:
- One image should be created per customer
- If a customer has multiple entries (multiple firms/services), all their outstanding dues should appear together in one table
- The table and message should look neat and properly aligned in the image
- Save each image with the customer's name as the filename
File Paths:
- My CSV File is located at:
- C:\Users\Log-in\Desktop\OS
- Name of File is: Customer.CSV
- Image folder is: C:\Users\Log-in\Desktop\OS\Images
- Please provide a clean and well-commented script for this.
PROMPT - 2
- I have a folder in which images are named after customers
- Images are located at:
- C:\Users\Log-in\Desktop\OS\Images
- I have a separate CSV File of Contact Details in which mail IDs are there – which is also attached above
- CSV file of contact located at:
- C:\Users\Log-in\Desktop\OS
- Name of file is: MAIL_ID.csv
- Now I want to send images to each customer through Mail ID
- Please give me a script for that
GENERATING PERSONALIZED REMINDERS
- Reads customer data from a spreadsheet
- Creates an image for each customer
- Includes name, firm, services, and pending amount
- With a greeting and polite note
- Saves all images to a folder
SENDING EMAILS
- Uses a second file with customer email addresses
- Matches names to the generated images
- Sends emails with:
- A Short Message
- The image as an attachment
- Sent securely through Gmail
AUTOMATING THE SCRIPT WITH TASK SCHEDULER
- Script can be scheduled to run daily, weekly, or monthly
- No need to manually open or run anything
- Runs silently in the background
- Ideal for consistent follow-ups without extra effort
ADVANTAGES
- Saves time and effort
- Eliminates manual errors
- Professional and well-formatted reminders
- Easily scalable for many customers