Showing posts with label email. Show all posts
Showing posts with label email. Show all posts
Monday, November 02, 2015
Python Email Send
Simple email test from python
import smtplib
from email.mime.text import MIMEText
f = "no-reply@example.com"
t = "joe@example.com"
s = smtplib.SMTP('localhost')
msg = MIMEText("this is a test")
msg["Subject"] = "This is a test - ignore"
msg["To"] = t
msg["From"] = f
s.sendmail(f, [t], msg.as_string())
Friday, August 27, 2010
Host a Test email server for Django header debugging
Set the following in settings.py
EMAIL_HOST="localhost"
EMAIL_PORT="1025"
Run the following to host the test webserver
EMAIL_HOST="localhost"
EMAIL_PORT="1025"
Run the following to host the test webserver
python -m smtpd -n -c DebuggingServer localhost:1025
http://docs.djangoproject.com/en/dev/topics/email/
Thursday, July 17, 2008
Sendmail/Postfix Info
Sendmail view mailq:
mailq
sendmail -bp
Sendmail view verbose info:
sendmail -v
Postfix flush mail queue:
sudo postfix flush
sudo postfix -f
Remove all mail in queue:
sudo postsuper -d ALL
Remove all mail in deferred queue:
sudo postsuper -d ALL deferred
Postfix Info
http://www.akadia.com/services/postfix_mta.html
http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html
http://www.unix.com.ua/orelly/networking/tcpip/ch10_08.htm
http://shinphp.blogspot.com/2011/09/ubuntu-clean-sendmail-queue.html
mailq
sendmail -bp
Sendmail view verbose info:
sendmail -v
Postfix flush mail queue:
sudo postfix flush
sudo postfix -f
Remove all mail in queue:
sudo postsuper -d ALL
Remove all mail in deferred queue:
sudo postsuper -d ALL deferred
Postfix Info
http://www.akadia.com/services/postfix_mta.html
http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html
http://www.unix.com.ua/orelly/networking/tcpip/ch10_08.htm
http://shinphp.blogspot.com/2011/09/ubuntu-clean-sendmail-queue.html
Subscribe to:
Posts (Atom)
