Skip to content

Commit

Permalink
updates to email.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan3232 committed Jan 30, 2024
1 parent 13b7ff3 commit c455c1a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ def OLDsend(self) -> None:

def send(self) -> None:
PORT = 465 # For starttls
HOST = "bcop.berkeley.edu"
username = "svc-bcop-seamless-learning"
sender_email = "[email protected]"
HOST = "REDACTED"
username = "REDACTED"
sender_email = "REDACTED"
SENDERNAME = Environment.get(ENV_EMAIL_FROM)
receiver_email = self.to_email
cc_emails = self.cc_emails
reply_to_email = self.reply_to_email
password = "RbLgAvAcba3Ba3chbsW5VQ4Z"
password = "REDACTED"
SUBJECT = self.subject
# message = """\
# Subject: Hi there
Expand Down Expand Up @@ -169,6 +169,6 @@ def send(self) -> None:

with SMTP_SSL(HOST, PORT) as server:
server.login(username, password)
server.sendmail(sender_email, receiver_email, msg.as_string())
server.sendmail(sender_email, [receiver_email]+cc_emails, msg.as_string())
server.close()
print("Email sent!")

0 comments on commit c455c1a

Please sign in to comment.