I'd like to emulate the postfix sendmail command in Django where I don't need to explicitly start up a postfix server.
For example if I simply enter the following on the command line:
sendmail recipient@example.com
my message body
^D
This will send a message to recipient@example.com. I don't need to start up a postfix server explicitly.
It seems like other languages (Perl and PHP) have bindings that will basically replicate this. However, I couldn't find a way to do it in Django/Python. The closest I got was by setting
EMAIL_HOST = 'localhost'
in settings.py
and then manually doing a
postfix start
This allows the django send_mail() command to do its thing, but isn't there some way to achieve this without a running postfix server in the background? How do other environments achieve this successfully?
Thanks -S
(And no - I do not want to set up a third party gmail account to do this - that is a well worn question).