This pull requests enables the sending of FOI emails to public bodies.
Testing
Note: Brian has sent me the previous Postmark credentials, if you want to test this PR (and enable the sending of emails) reach out to me on Slack (codewithaloha.slack.com) and I shall provide them to you.
When testing this, both the ENABLE_EMAIL and the other related email configuration environment variables need to be set (depending on what you are trying to test). You should also not send a test email to a "real" public body on the development portal, as that will actually send a real email to that entity. You should create some sort of test public body and send all emails to that test entity.
Another thing (off topic) is the TIME_ZONE setting. We should set it in uipa_org/settings/base.py to Pacific/Honolulu. Without that, it is set to Europe/Berlin.
Context
This pull requests enables the sending of FOI emails to public bodies.
Testing
When testing this, both the
ENABLE_EMAIL
and the other related email configuration environment variables need to be set (depending on what you are trying to test). You should also not send a test email to a "real" public body on the development portal, as that will actually send a real email to that entity. You should create some sort of test public body and send all emails to that test entity.Example FOI Email Received
Related Items
https://github.com/CodeWithAloha/uipa/issues/89