Skip to content

Commit e754199

Browse files
committed
Change email behavior
1 parent 473064e commit e754199

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

cloudformation/iam.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Parameters:
1616
SqsQueueArn:
1717
Type: String
1818

19+
Conditions:
20+
IsDev: !Equals [!Ref RunEnvironment, "dev"]
21+
1922
Resources:
2023
# Managed Policy for Common Lambda Permissions
2124
CommonLambdaManagedPolicy:
@@ -254,6 +257,12 @@ Resources:
254257
StringEquals:
255258
ses:FromAddress:
256259
Fn::Sub: "sales@${SesEmailDomain}"
260+
ForAllValues:StringLike:
261+
ses:Recipients:
262+
- !If
263+
- IsDev
264+
- "*@illinois.edu"
265+
- "*"
257266

258267

259268
EdgeLambdaIAMRole:

src/api/functions/ses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ MIME-Version: 1.0
243243
Content-Type: multipart/mixed; boundary="${boundary}"
244244
From: ACM @ UIUC <${senderEmail}>
245245
To: ${payload.email}
246-
Subject: ${subject}
246+
Subject: Your ACM @ UIUC Purchase
247247
248248
--${boundary}
249249
Content-Type: text/html; charset="UTF-8"

0 commit comments

Comments
 (0)