Skip to content

Commit

Permalink
[TEMPORARY] 임시 이메일 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
mallycrip committed Dec 16, 2020
1 parent 0f679c8 commit 170d3d5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion infrastructure/sms/sms_service_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,19 @@
class SMSServiceImpl(SMSService):
@trace_service("SMS (send)", open_tracing)
def send(self, target_number: str, message: str, x_request_id):
pass
# Temporary
import os
import smtplib
from email.mime.text import MIMEText

smtp = smtplib.SMTP('smtp.gmail.com', 587)
smtp.ehlo()
smtp.starttls()
smtp.login('[email protected]', os.getenv("EMAIL_PASSWORD"))

msg = MIMEText(message)
msg['Subject'] = 'SMS 테스트'
msg['To'] = '[email protected]'
smtp.sendmail('[email protected]', '[email protected]', msg.as_string())

smtp.quit()

0 comments on commit 170d3d5

Please sign in to comment.