-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
32 lines (21 loc) · 1.22 KB
/
test.py
File metadata and controls
32 lines (21 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import newClient
import base64
import bojangles
import pymysql
import driver
connection = newClient.DATABASE()
cursor = connection.cursor()
sql = 'select * from SDECheap.USERS;'
cursor.execute(sql)
todo = cursor.fetchall()
emails = []
for i in todo:
email = i["onyen"] + '@live.unc.edu'
if email in emails:
pass
else:
print("Sending to %s" % email)
emails.append(email)
msg = "Dear %s,\n\nThank you for signing up for Swap Drop Enroll! As some of you may know, Swap Drop Enroll is a brand new tool that will help you and your friends get into the classes that you want.\n\nOf course, as a relatively new program, we are still looking to refine and optimize the user experience and design of Swap Drop Enroll. If you have any suggestions, complaints, or ideas for future improvements, we would love to know!\n\nSend us an email at blowjangles@protonmail.com to let us know how we can make Swap Drop Enroll a more intuitive, streamlined, and aesthetically spectacular experience for you and your loved ones. If you do, there just might be a few referral points thrown your way.\n\nRegards,\n\nSwap Drop Enroll Team" % (i["onyen"])
driver.send_email(email, "Feedback", msg)
connection.close()