Showing posts with label email. Show all posts
Showing posts with label email. Show all posts
Thursday, February 9, 2012
app engine and django mail
lo and behold, local email (as in, sending email to console) in django works with the app engine development server, but not with the app engine development backend / taskqueue server. It gives you an attributeerror: Exception Value: 'module' object has no attribute 'getfqdn'
Wednesday, January 18, 2012
email attachments with django postmark
A quick fix - and there are some pull requests for this on bitbucket, so feel free to look for them, but you can do it yourself -
in postmark/backends.py, attachments are expected to be in dictionary form:
{'Name':XXXX,'Content':XXXX,'ContentType':XXXX}
however, the default django core email attachment method wants them as a tuple. Make your own patch if you want, it's pretty straightforward. Postmark's error messages are fairly useless.
facepalms: 3
Subscribe to:
Posts (Atom)