raise FeedbackException("Bad checksum: %d vs. %d" % (sentchecksum, checksum))
msg = MIMEText(text.encode("utf-8"), _charset="utf-8")
- msg["Subject"] = "qwebirc feedback from %s" % (request.client[1])
+ msg["Subject"] = "qwebirc feedback from %s" % request.getClientIP()
msg["From"] = config.FEEDBACK_FROM
msg["To"] = config.FEEDBACK_TO
email = StringIO(msg.as_string())
factory = factorytype(fromEmail=config.FEEDBACK_FROM, toEmail=config.FEEDBACK_TO, file=email, deferred=defer.Deferred())
reactor.connectTCP(config.FEEDBACK_SMTP_HOST, config.FEEDBACK_SMTP_PORT, factory)
self.__hit()
- return "1"
\ No newline at end of file
+ return "1"