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 as sample.pdf or sample.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 participant
    • Email : Email of the participant
  • The template folder should contain the certificate template in .png or in .pdf format
  • Change the self.MailSenderAddress and self.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 and font size are cutomizable, to chenge uploaad the font in Fonts Folder and chenge the path according to the name in certificate_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:

Video

  • Running for pdf sample

Video

  • Determining coordinates for pdf sample

Video

Cheers 🥂,
Manas
GitHub | Email