Dec 13, 2024
·
2 min
Developer Script
This blog is for developers who want to know about the script. Run it on your local machine and see the magic.

Usage
- Clone the repository
git clone https://github.com/scienmanas/CertiMailer
or you can download the zip and extract the files
- Add the details of the participants in the
names.csv
file before running the program. - Add the certificate template in the
template
folder. Make sure the template you upload should be names assample.pdf
orsample.png
- The certificates will be generated in the
certificates
folder and the mails will be sent to the participants
Running
For Windows
- Open the
Powershell
and navigate to the cloned/downloaded repository location. - Run the command
Set-ExecutionPolicy Unrestricted -Scope CurrentUser
- To start the application run the following command in terminal (One time)
.\certimailer.ps1
For Linux
- Open the
terminal
and navigate to the cloned/downloaded repository location. - To start the application run the following command in terminal (One time)
chmod +x certimailer.sh
- To start the script everytime run command
./certimailer.sh
Note & Customization
- For customization change the settings by modifying
settings.py
The
names.csv
file should contain the following columns:Name
: Name of the participantEmail
: Email of the participant
- The
template
folder should contain the certificate template in.png
or in.pdf
format - Change the
self.MailSenderAddress
andself.Passwords
to your organization Email and Password (App Password) or you can configure it in terminal - Change the
html_content to your desired redering Content
- The
font
andfont size
are cutomizable, to chenge uploaad the font inFonts Folder
and chenge the path according to the name incertificate_generator.py
file. - Number of parametrs that can be printed and be taken as input are also customizable.
- Don't stop the running the script by
Ctrl + C/X
otherwise the progress of the mail sent will not updated for that run.
Video :
- Demo for png & deterning coordinates for
png
sample:
- Running for
pdf
sample
- Determining coordinates for
pdf
sample