From 1ea3ea34c12f9fb5c738b3c4169382c54ad642da Mon Sep 17 00:00:00 2001 From: clamsawd Date: Thu, 29 Oct 2015 21:26:12 +0100 Subject: [PATCH] Fixed syntax error --- ip2e-daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip2e-daemon.py b/ip2e-daemon.py index 7b8b6c9..500bcb5 100755 --- a/ip2e-daemon.py +++ b/ip2e-daemon.py @@ -215,7 +215,7 @@ while PublicIP <= 2: CurrentTime = time.strftime("%H:%M") #Sending email using smtplib 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" server = smtplib.SMTP(SmtpFromEmail) server.ehlo()