a Python script to pull names and emails from an excel sheet and send an email to every email in the list with a customized message that uses their name.
git clone https://github.com/M3shour/Uchu-ni.git
cd Uchu-ni
pip3 install -r requirements.txtusage: Email_sender.py [-h] --sender_email SENDER_EMAIL --sender_password SENDER_PASSWORD --subject SUBJECT --excel_file_path EXCEL_FILE_PATH
--sheet_name SHEET_NAME --email-column EMAIL_COLUMN [--name-column NAME_COLUMN] --imap-server IMAP_SERVER
--smtp-server SMTP_SERVER [--attachment_path ATTACHMENT_PATH] [--append-attachment APPEND_ATTACHMENT] --email-template
EMAIL_TEMPLATE- --sender_email: The email you intend to send from - required
- --sender_password: The password of the email above - required
- --subject: subject of your email - required
- --excel_file_path: The path of the excel file that contains the emails - required
- --sheet_name: the name of the excel sheet - required
- --email-column: the name of the column that contains the emails of the recipients - required
- --name-column: The name of the column that contains the names of the recipients
- --imap-server: The address of the imap server to connect to - required
- --smtp-server: The address of the imap server to connect to - required
- --attachment_path: path to attachment to send with the emails
- --append-attachment: choose if you want to append the attachment to the imap server or not(useful for large attachments)
- --email-template: path to HTML file that contains the structure and content of your emails required
python3 Email_sender.py --sender_email "m3shour@example.com" --sender_password "Uchu-ni means to the world!" --subject "Hello World" --excel_file_path "Maillist.xlsx" --sheet_name "Sheet1" --email-column "Emails" --name-column "Names" --imap-server "imaps.example.com" --smtp-server "smtp.example.com" --attachment_path "Cute_cat.pdf" --append-attachment True --email-template "email_template.html"Made by M3shour