Fixed syntax error
This commit is contained in:
parent
e6fcdd8089
commit
1ea3ea34c1
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user