diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-01-22 11:54:53 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-01-22 11:54:53 -0300 |
commit | 0e1ed2edbccbbbbdf34ebf21b841df49e1e8b7fe (patch) | |
tree | 5ebf1a22b7041bc4934211c4e1ef792aa1687afc | |
parent | bf9ddcc76e4d7ffa4b6d738bd0087750f1f4f13b (diff) |
Start sending from the first subject.
-rwxr-xr-x | src/send-mail-batch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/send-mail-batch.py b/src/send-mail-batch.py index fceea74..17c9543 100755 --- a/src/send-mail-batch.py +++ b/src/send-mail-batch.py @@ -191,10 +191,10 @@ gmail = GMail(FROM, SECRET) print "Sending {0} mails batch...".format(MAX_MAILS) -count = 1 -while count <= MAX_MAILS: +count = 0 +while count < MAX_MAILS: idx = (count % len(lorem_subjects)) - subject = "[TEST] {0:03} - {1}".format(count, lorem_subjects[idx]) + subject = "[TEST] {0:03} - {1}".format(count+1, lorem_subjects[idx]) print "Sending '{0}' ... ".format(subject), try: problems = send_test_mail(subject) |