set mail address
This commit is contained in:
@@ -3,8 +3,8 @@ import smtplib
|
|||||||
# --- HELPER TRIMITE EMAIL (GMAIL) ---
|
# --- HELPER TRIMITE EMAIL (GMAIL) ---
|
||||||
def send_gmail(to_email, subject, body):
|
def send_gmail(to_email, subject, body):
|
||||||
# Folosește App Password-ul tău de la Google aici
|
# Folosește App Password-ul tău de la Google aici
|
||||||
user = "macamete.robert@gmail.com"
|
user = "notificari.aquilasoft@gmail.com"
|
||||||
pw = "advx yqlv jkaa czvr"
|
pw = "bpjv qmcq gptb pkpg "
|
||||||
msg = f"Subject: {subject}\nContent-Type: text/html\n\n{body}"
|
msg = f"Subject: {subject}\nContent-Type: text/html\n\n{body}"
|
||||||
try:
|
try:
|
||||||
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
|
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
|
||||||
|
|||||||
Reference in New Issue
Block a user