mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 13:06:30 +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 ---
|
# --- These keys are obtained from `.env` file ---
|
||||||
# Set a private JWT signing key for Login.gov
|
# Set a private JWT signing key for Login.gov
|
||||||
- DJANGO_SECRET_LOGIN_KEY
|
- DJANGO_SECRET_LOGIN_KEY
|
||||||
|
# AWS credentials
|
||||||
|
- AWS_ACCESS_KEY_ID
|
||||||
|
- AWS_SECRET_ACCESS_KEY
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Thank you for submitting an application for the domain name "{{ domain_name }}".
|
Thank you for submitting an application for the domain name "{{ domain_name }}".
|
||||||
|
|
||||||
If you need to make changes to your application, visit
|
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,
|
FromEmailAddress=settings.DEFAULT_FROM_EMAIL,
|
||||||
Destination={"ToAddresses": [to_address]},
|
Destination={"ToAddresses": [to_address]},
|
||||||
Content={
|
Content={
|
||||||
|
"Simple": {
|
||||||
"Subject": {"Data": "Thank you for applying for a .gov domain"},
|
"Subject": {"Data": "Thank you for applying for a .gov domain"},
|
||||||
"Body": {"Text": {"Data": email_body}},
|
"Body": {"Text": {"Data": email_body}},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue