This Python script creates a graphical user interface (GUI) using Tkinter to generate email templates quickly and easily.
- Fill in customer information, order details, and item lists to generate email templates.
- Generate subject lines dynamically based on order numbers.
- Copy generated email subject and body to the clipboard for easy sharing or pasting.
-
Clone the Repository: Clone or download the repository containing the
emailautocreate.pyscript. -
Install Python: Ensure Python is installed on your system. You can download Python from the official website.
-
Install Dependencies: Open a terminal or command prompt, then run the following command to install the required dependencies:
pip install tk
-
Run the Script: After installing dependencies, execute the script in a terminal or command prompt:
python emailautocreate.py
-
Fill in Information: Enter relevant details such as customer name, order number, address, etc., in the provided fields.
-
Generate Email: Click the "Generate Email" button to create the email template with the provided information.
-
Copy Email: Use the "Copy Email" button to copy the generated email to the clipboard for easy sharing or pasting.
If you prefer not to use the terminal to build the app, you can build it using PyInstaller directly.
-
Install PyInstaller (if not already installed): PyInstaller is a tool used to convert Python scripts into standalone executables. If you haven't installed PyInstaller yet, you can do so using pip:
pip install pyinstaller
-
Run PyInstaller to Build the App: Once PyInstaller is installed, navigate to the directory containing the
emailautocreate.pyscript using your file explorer. Then, follow these steps:-
Step 1: Hold down the
Shiftkey on your keyboard and right-click in the folder containing the script. -
Step 2: From the context menu that appears, select "Open PowerShell window here" or "Open command window here," depending on your system.
-
Step 3: In the PowerShell or command window, run the following command to build the Email Template Generator without opening a terminal/console window:
pyinstaller --onefile --noconsole emailautocreate.py
- --onefile: This flag tells PyInstaller to bundle the Python script and its dependencies into a single executable file.
- --noconsole: This flag ensures that the built executable does not open a terminal/console window when launched.
This command will bundle the Python script and its dependencies into a standalone executable file without opening a terminal window when the app is launched.
-
-
Find the Executable: After PyInstaller has finished building the app, you can find the executable file in the
distdirectory within the project directory. The executable file will have the same name as your Python script with an added extension (e.g.,emailautocreate.exeon Windows). -
Run the Executable: You can run the executable file directly from your file explorer by double-clicking on it. This will launch the Email Template Generator without the need for Python or any additional dependencies.
If you find this project useful and would like to support further development, you can donate Bitcoin to the following address:
Bitcoin Taproot Address: bc1p3863n5kss37j9zduqnfwrlj59vf5dnvcvccf7rzuujzwcmg6uevqwh92xc
ETH Address: 0x56DC29495FAeB3B4331cE32A2190096C071f18e7
Your contributions will be greatly appreciated and will help in maintaining and improving this project. Thank you for your support!
Remember to replace the placeholder email support@placeholder.co.za in the code with your actual support email address.

