Skip to content

Commit

Permalink
Using environment variables in SendEmail.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shahrk committed Nov 21, 2021
1 parent 4c53652 commit 29ffb87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/SendEmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
limitations under the License.
"""
import smtplib

import os

def sendEmail(receiver, itemName, url):
"""
Expand All @@ -28,9 +28,9 @@ def sendEmail(receiver, itemName, url):
"""

# The email address of sender
gmail_user = "*****"
gmail_user = os.environ['GMAIL_ID']
# The password of sender's email
gmail_password = "*****"
gmail_password = os.environ['GMAIL_PASSWORD']

# The subject of email content
subject = "The item " + itemName + " is restocked!!!!!"
Expand Down

0 comments on commit 29ffb87

Please sign in to comment.