Skip to content

Commit

Permalink
fix for non-org email
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanaroth committed Aug 19, 2021
1 parent 7e43861 commit 30f8f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ def send_to_teams(message, webhookurl):
print("Server connection failed: ", e.reason, e.reason)


def send_email(event_details, eventType):
def send_email(event_details, eventType, affected_accounts, affected_entities):
SENDER = os.environ['FROM_EMAIL']
RECIPIENT = os.environ['TO_EMAIL'].split(",")
#AWS_REGIONS = "us-east-1"
AWS_REGION = os.environ['AWS_REGION']
SUBJECT = os.environ['EMAIL_SUBJECT']
BODY_HTML = get_message_for_email(event_details, eventType)
BODY_HTML = get_message_for_email(event_details, eventType, affected_accounts, affected_entities)
client = boto3.client('ses', region_name=AWS_REGION)
response = client.send_email(
Source=SENDER,
Expand Down

0 comments on commit 30f8f52

Please sign in to comment.