Spaces:
Running
Running
raannakasturi
commited on
Commit
•
1d6fc28
1
Parent(s):
5d6ebf8
Update send_mail.py
Browse files- send_mail.py +2 -0
send_mail.py
CHANGED
@@ -55,7 +55,9 @@ def send_email(email, private_key, csr, cert, generation_details):
|
|
55 |
send_smtp_email = sib_api_v3_sdk.SendSmtpEmail(to=to, reply_to=reply_to, attachment=attachments, text_content=text_content, sender=sender, subject=subject)
|
56 |
try:
|
57 |
api_response = api_instance.send_transac_email(send_smtp_email)
|
|
|
58 |
return True
|
59 |
except ApiException as e:
|
|
|
60 |
print("Exception when calling SMTPApi->send_transac_email: %s\n" % e)
|
61 |
return False
|
|
|
55 |
send_smtp_email = sib_api_v3_sdk.SendSmtpEmail(to=to, reply_to=reply_to, attachment=attachments, text_content=text_content, sender=sender, subject=subject)
|
56 |
try:
|
57 |
api_response = api_instance.send_transac_email(send_smtp_email)
|
58 |
+
print("Email Sent")
|
59 |
return True
|
60 |
except ApiException as e:
|
61 |
+
print("Can't send email")
|
62 |
print("Exception when calling SMTPApi->send_transac_email: %s\n" % e)
|
63 |
return False
|