Í
Íßêïò Ãêñ33ê
SENDMAIL = '/usr/sbin/sendmail'
FROM = mail
TO = ['(e-mail address removed)']
SUBJECT = "Åðéêïéíùíßá ðéèáíïý ðåëÜôç!"
TEXT = comment
message = """\
From: %s
To: %s
Subject: %s
%s
""" % (FROM, ", ".join(TO), SUBJECT, TEXT)
p = os.popen("%s -t -i" % SENDMAIL, "w")
p.write(message)
status = p.close()
if status != 256:
print( "<h2><font color=lime>Åõ÷áñéóôþ ðïëý ãéá ôï åíäéáöÝñïí! Èá åðéêïéíùíÞóù ìáæß óïõ Üìåóá </font></h2>" )
else:
print( "<h2><font color=red>Äõóôõ÷þò äåí ìðüñåóå íá áðïóôáëåß ôï e-mail :-(" )
===============
Do you see somehtign wrong in the above code?
FROM = mail
TO = ['(e-mail address removed)']
SUBJECT = "Åðéêïéíùíßá ðéèáíïý ðåëÜôç!"
TEXT = comment
message = """\
From: %s
To: %s
Subject: %s
%s
""" % (FROM, ", ".join(TO), SUBJECT, TEXT)
p = os.popen("%s -t -i" % SENDMAIL, "w")
p.write(message)
status = p.close()
if status != 256:
print( "<h2><font color=lime>Åõ÷áñéóôþ ðïëý ãéá ôï åíäéáöÝñïí! Èá åðéêïéíùíÞóù ìáæß óïõ Üìåóá </font></h2>" )
else:
print( "<h2><font color=red>Äõóôõ÷þò äåí ìðüñåóå íá áðïóôáëåß ôï e-mail :-(" )
===============
Do you see somehtign wrong in the above code?