Skip to content

Commit 1ff0a72

Browse files
authored
Merge pull request #30 from amfoss/develop
add alias mail
2 parents 61d5ea4 + 162624c commit 1ff0a72

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/utils/mail.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import smtplib
22
from email.message import EmailMessage
33
import os
4-
5-
64
from dotenv import load_dotenv
75
load_dotenv()
86

@@ -12,7 +10,7 @@
1210
def send_email(to_email: str, otp: str):
1311
msg = EmailMessage()
1412
msg["Subject"] = "Your OTP Verification Code"
15-
msg["From"] = EMAIL_ADDRESS
13+
msg["From"] = "support@amfoss.in"
1614
msg["To"] = to_email
1715
msg.set_content(f"Your OTP is: {otp}\n\nThis OTP is valid for 5 minutes.")
1816

0 commit comments

Comments
 (0)