Fixed syntax error

This commit is contained in:
clamsawd 2015-10-29 21:26:12 +01:00
parent e6fcdd8089
commit 1ea3ea34c1

View File

@ -215,7 +215,7 @@ while PublicIP <= 2:
CurrentTime = time.strftime("%H:%M") CurrentTime = time.strftime("%H:%M")
#Sending email using smtplib #Sending email using smtplib
SmtpSubject = "[ip2e-daemon] ["+CurrentTime+"] IP has changed" SmtpSubject = "[ip2e-daemon] ["+CurrentTime+"] IP has changed"
SmtpHeader = "From: """+FromEmail+"\n"+"To: "+ToEmail+"\n"+"Subject: "+SmtpSubject+"\n" SmtpHeader = "From: "+FromEmail+"\n"+"To: "+ToEmail+"\n"+"Subject: "+SmtpSubject+"\n"
SmtpBodyMessage = SmtpHeader+"\n"+"[ip2e] New IP is "+NewIP+"\n\n" SmtpBodyMessage = SmtpHeader+"\n"+"[ip2e] New IP is "+NewIP+"\n\n"
server = smtplib.SMTP(SmtpFromEmail) server = smtplib.SMTP(SmtpFromEmail)
server.ehlo() server.ehlo()