-
Install these dependencies.
$ sudo apt-get install python python-dev
-
You need to have an account in Gmail.
-
First make sure that, whether you have changed/set your gmail user name and it's password in "mail.py" at line number 10 and 11.
-
In "body" file, you put the content of the mail that you want to send.
-
In "to_mails" file,add the list of email address you want to send the email given that there is only one email address per line
-
In "mail.py" at line 45, make sure you provide the SUBJECT string
-
(Optional) If there are any attachments, specify the file names in line 46. and make sure the attachments are in same folder as the mail.py file.
$ python mail.py
Only 500 mails can be sent via gmail per day
http://support.google.com/a/bin/answer.py?hl=en&answer=166852