Skip to content

Commit

Permalink
add some todos for Ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed May 24, 2024
1 parent a136fdf commit 308f336
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions messenger/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
def send_email(request):
if request.method == 'POST':
email_data = {
# todo: convert it to recipients:
"email": request.POST.get("email"),
"subject": request.POST.get("subject"),
"body": request.POST.get("body")
# todo: add a field for choosing template
}
response = requests.post("http://127.0.0.1:8080/send-email/", json=email_data)

Expand Down
7 changes: 7 additions & 0 deletions proxies/email_service/send_email.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# email api: https://smtp.sepid.org/send-email/

# todo: remove messenger app

def send_email():
# todo
pass

0 comments on commit 308f336

Please sign in to comment.