dobtco / beacon

[Not maintained] Beacon, originally built by CfA Pittsburgh 2015.
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Send email in development without configuration / an internet connection #13

Open ajb opened 8 years ago

ajb commented 8 years ago

Outcome:

Can we do something like Django's "console" or "file" email? https://docs.djangoproject.com/en/1.9/topics/email/#configuring-email-for-development

(We use https://github.com/ryanb/letter_opener for Rails.)

Another option would be to use a dummy SMTP server, like: https://nilhcem.github.io/FakeSMTP/

Apparently, you can even run one with a simple python one-liner: http://serverfault.com/a/248838

bsmithgall commented 8 years ago

Flask-Mail just connects over SMTP, so in theory this should be possible without actually having to change anything but some configuration. I like seeing how the emails look in gmail because they are hard to format properly for me.