Skip to content

IIIT-ECell/mass_mailing

Repository files navigation

Mass Mailing Script

This script is designed to help you send mass mails that are rich in HTML content, with attachments to users.

Configuration:

1.salutation.txt Enter text to be written before name of sender here.
For example:

Hi Jane Doe,

<!--Here, 

'Hi<_space_>' 
will be the content in salutation.txt

--> 

2.body.txt Enter whatever follows name of sender (comma, return, body of email and salutation) in HTML format.
For example:

 ,<br/>

<!--This part of the content contains everything after the salutation-->

<p> 

    Enter the body in whatever HTML format you wish to.

</p>

<p>

    <!--The following portion contains the signature-->

    Signature here.

</p>

3.Attachments Configure attachement path and file name in IMPORTANT CONSTANTS.

  1. IMPORTANT CONSTANTS Ensure that these are correctly filled.
########################################

# IMPORTANT CONSTANTS

# File with e-mail address of targets
target_csv = 'target.csv'

# Sender E-Mail Address
email_id = '[email protected]'

# Enter your name/organisation name for identification
identification = 'Justice League Inc.'

# Mailing Server
SMTP_server = 'mail.justiceleague.org'

# Mail's Subject
subject = "Resignition Citing Lack of Superpowers"

attachment_path_and_name = "./sample_attachment.jpg"

########################################

Support for a better method will be added soon.

Format of Mailing List :

  1. CSV file format.
  2. Fields should be exactly similar as in the given target.csv.
    Example:
S.No, Name, email,
S.No, Name, email,

General Instructions:

  1. Send a mail to yourself first using the script before blasting it on mailing lists.
  2. If you need any help, create an issue.
  3. Don't spam. It's unbecoming.
  4. Post configuration, enter the following with your email account password:
python send_mail.py MAIL_PASSWORD_HERE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published