|
|
|
@ -38,7 +38,7 @@ def sender(): |
|
|
|
def send_mail(recipient, file): |
|
|
|
def send_mail(recipient, file): |
|
|
|
|
|
|
|
|
|
|
|
msg = Message('Poker Analytics Backup', sender = 'backup@pokeranalytics.net', recipients = [recipient]) |
|
|
|
msg = Message('Poker Analytics Backup', sender = 'backup@pokeranalytics.net', recipients = [recipient]) |
|
|
|
msg.body = "This is the backup" |
|
|
|
#msg.body = "This is the backup" |
|
|
|
|
|
|
|
|
|
|
|
filename = secure_filename(file.filename) |
|
|
|
filename = secure_filename(file.filename) |
|
|
|
msg.attach(filename, "text/csv", file.read()) |
|
|
|
msg.attach(filename, "text/csv", file.read()) |
|
|
|
|