summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/send-mail-batch.py6
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)