mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 12:38:36 +02:00
Fixes from manual testing email sending
This commit is contained in:
parent
d0e9cfce10
commit
a314b905d3
3 changed files with 8 additions and 3 deletions
|
@ -30,6 +30,9 @@ services:
|
|||
# --- These keys are obtained from `.env` file ---
|
||||
# Set a private JWT signing key for Login.gov
|
||||
- DJANGO_SECRET_LOGIN_KEY
|
||||
# AWS credentials
|
||||
- AWS_ACCESS_KEY_ID
|
||||
- AWS_SECRET_ACCESS_KEY
|
||||
stdin_open: true
|
||||
tty: true
|
||||
ports:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Thank you for submitting an application for the domain name "{{ domain_name }}".
|
||||
|
||||
If you need to make changes to your application, visit
|
||||
<http://registrar.get.gov/application/{{ id }/edit}>.
|
||||
<http://registrar.get.gov/application/{{ id }}/edit>.
|
||||
|
|
|
@ -26,7 +26,9 @@ def send_templated_email(template_name: str, to_address: str, context={}):
|
|||
FromEmailAddress=settings.DEFAULT_FROM_EMAIL,
|
||||
Destination={"ToAddresses": [to_address]},
|
||||
Content={
|
||||
"Subject": {"Data": "Thank you for applying for a .gov domain"},
|
||||
"Body": {"Text": {"Data": email_body}},
|
||||
"Simple": {
|
||||
"Subject": {"Data": "Thank you for applying for a .gov domain"},
|
||||
"Body": {"Text": {"Data": email_body}},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue