+ print EMAIL
+ print user[1]
+ print BODY
+ server.sendmail(EMAIL, user[1], BODY)
+ server.quit()
+ else:
+ BODY = string.join((
+ "From: %s" % EMAIL,
+ "To: %s" % user[1],
+ "Subject: [Cavote] Vote reminder - Last days to modify your choice",
+ "Date: %s" % time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()).decode('utf-8'),
+ "X-Mailer: %s" % VERSION,
+ "",
+ "A vote concerns you and is going to terminate on %s : %s" % (vote[2], vote[3]),
+ "You have already voted by can still modify you choice",
+ "",
+ "This link will bring you to the form where you will be able to participate :",
+ link,
+ "",
+ "If you think this mail is not for you, please ignore and delete it."
+ ), "\r\n")
+ server = smtplib.SMTP(SMTP_SERVER)
+ print EMAIL
+ print user[1]
+ print BODY