Mass email sender by c0ax

ljuskaArchive
//archivePosts: 37Member, Moderator in Perl / Python / Shell scripting

Scripta uzima mailove iz fajla, i za svaku liniju u fajlu == 1 mail i salje poruku, mozte videti dole
Eh da, veliko hvala Baltazaru

import smtplib

fajl=open("emails.txt","r")
recipients=fajl.readlines()
server='localhost'
sender='saljemsvimaporukesa@ljuska.org'
message='Subject: LJuska \n\nljuska.net uskoro pocinje  sa radom !!!'

for line in recipients:
        try:
                session=smtplib.SMTP(server)
                session.sendmail(sender,recipients,message);
                break
        except:
                print "Ostali mu samo dugmici... :D"
Sign In or Register to comment.

Welcome

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions