Version 0.6 !!

This commit is contained in:
tonio
2009-06-19 13:54:05 +02:00
parent 968122d50b
commit 55f6c56c9f
19 changed files with 280 additions and 47 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
BASEDIR=/home/tonio
export PYTHONPATH=$BASEDIR
export DJANGO_SETTINGS_MODULE=mailng.settings
$BASEDIR/mailng/scripts/autoreply.py $1 $2
+7 -1
View File
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import sys
import smtplib
from email.mime.text import MIMEText
import datetime
from django.conf import settings
@@ -38,7 +39,12 @@ if __name__ == "__main__":
msg['Subject'] = armessage.subject
msg['From'] = mailbox
msg['To'] = sender
print msg
s = smtplib.SMTP()
s.connect()
s.sendmail(mailbox, sender, msg.as_string())
s.quit()
lastar.last_sent = datetime.datetime.now()
lastar.save()
sys.exit(0)